with Innosetup, during the installation, the user can select some information (Port, Traces Level) using TInputQueryWizardPage and the path where to install the application (using TInputDirWizardPage)
Once all the files installed, I need to modify a file installed in {code:GetDataDir}
In NextButtonClick function, I added this code:
xmlPathFile := ExpandConstant('{code:GetDataDir}') + '\PL8_COMSRV\SampleServerExe.exe.config';
UpdateConfigKeyValue(xmlPathFile,'//configuration/appSettings/add','PortSender',Level2PortPage.Values[0]);
UpdateConfigKeyValue(xmlPathFile,'//configuration/appSettings/add','PortReceiver',Level2PortPage.Values[1]);
The UpdateConfigKeyValue procedure is coming from an Innosetup example: how to modify the exe.config from Innosetup script
Unfortunately, when this function is called, the file is not yet installed.
My question, when can I call this procedure in order to modify an installed file?
Thank you in advance