Add option to installers for keeping sources.ini
I recently made a change to the build script which included a copy of sources.ini as one of the files to be installed. This works fine for the archives, as the user would have to manually remove the file if they no longer want it.
With the Inno Setup installer however, it is now removed as part of the uninstall process. Making a backup first is covered in the Upgrade notes, but it's a good idea to offer the option to keep the file to users.
Inno Setup installer: Asking user during start of uninstall whether they wish to keep sources.ini file. cache.ini isn't part of the install, so it's kept if the user uninstalls.
This is another one of those times I shouldn't code. I was checking for IDYES instead of IDNO.
I had to exclude sources.ini from the wildcard inclusion. I also set the onlyifdoesntexist flag so a modified copy wouldn't be overwritten. That should take care of most "oops" cases during upgrades.
Reversed earlier changes for the Inno Setup project file.
I've decided to copy over sources.ini.dist to the package_dir as sources.example.ini instead of sources.ini. This means that the installer will not touch sources.ini by default. Any changes the user makes stays.
This will make having the same functionality in the WiX project easier to implement.
Added comment to sources.dist.ini to make it clearer what the purpose of the file is.