I have created an Inno Setup script for a C++ app. The script works fine and consists of the following:
[Files]
Source: "C:UsersjohnDesktopMy_App_setupmy_app.exe";
DestDir: "{app}";
Flags: ignoreversion
Source: "C:UsersjohnDesktopMy_App_setupsettings*";
DestDir: "{app}settings";
Flags: ignoreversion recursesubdirs createallsubdirs
The files are the C++ executable my_app.exe
and a settings text file that is customized by the end user.
What I’d like to do is when I have an new version of my_app.exe
to update just this file and leave the same settings that the user may have changed so far.
What should I try?
Just add onlyifdoesntexist
flag:
Source: "C:UsersjohnDesktopMy_App_setupsettings*";
DestDir: "{app}settings";
Flags: ignoreversion recursesubdirs createallsubdirs onlyifdoesntexist