04-03-2023 01:02 PM
Part of my package contains configuration files. If a package is updating an installation then the configuration files already exist and I do not want to write over them. I don't see a property for this. Is there a way to do this?
Solved! Go to Solution.
04-03-2023 01:30 PM
You will need to use something else to that automation. Potentially a small program/script that NIPM can call from the command line.
04-04-2023 11:26 AM
In general, it's less idea to have the installer create the config file with the final name because:
An alternative is to either have the application create the config file dynamically if it doesn't exist, OR have the package install the config file under a different name (like "config_template.ini") and have the application copy that into the final name if it doesn't exist. It also has the nice side benefit if the real config file gets corrupted in some way, that the original is still right there to be used as an example or fresh copy.
04-06-2023 02:39 PM - edited 04-06-2023 02:40 PM
I ended up installing the files into %temp% and creating a batch file that copied them from %temp% to the configuration directory if they didn't already exist.
robocopy "%temp%" "<config dir>" "config file" /XC /XN /XO
/XC = eXclude Changed files
/XN = eXclude Newer files
/XO = eXclude Older files
This is along the lines of what Bill suggested.