Hi,
I've created a new installer for an update of a java program. We have previously handed out this java program to customers using a different installer.
My Problem is that there are 2 files that contain customer specific settings.
In the event of an upgrade, we would like to preserve the 2 files.
In the event of a new installation, we would like 2 "empty/default" files to be installed.
Simply put:
If Files exist - do not overwrite
If Files do not exist - install default files
I currently have custom actions set up that will install the default files, not overwrite them if a repair is performed, and delete them on removal of program, however this still overwrites on installation if the files exist.
I can change the custom actions to preserve the old files, however if they do not exist an error is thrown and the install does not complete.
My problem really is that I don't know how to do both at the same time. Is it as simple as changing the Execution Condition on the Custom Action Properties? If so, do you know what it should be? Or am I completely wrong?
Many Thanks for all Help,
Kaj78
FOLLOW US
Get the latest news in Application Packaging