I would like to edit an ini file wich will be installed. But I read I can't call Edit Ini file after the Apply Install command because this is a Windows Installer command.
Should I call Edit Ini File command before Apply install (in the DEFINE WEB MEDIA bloc ?) using SFXPATH valiable, to edit my ini file?
I would like something like that.
Code: Select all
Install Files E:\\MyLocalFilePath\\MyIniFile.opt to $TARGETDIR$\\MyDestDir\\MyIniFile.opt
...
Apply Install (get result into variable success)
If Varible MyCustomVariable Equals 1
Edit INI File $TARGETDIR$\\MyDestDir\\MyIniFile.opt, [MySection] var=value1
else
Edit INI File $TARGETDIR$\\MyDestDir\\MyIniFile.opt, [MySection] var=value2
End
But this doesn't work !
Can you help please ?
Thanks