We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kaj78
Posts: 4
Joined: Thu Jul 06, 2006 5:29 am

Preserving files of older versions if they exist

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
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please take a look here. I'm sure that this is what you are looking for:
http://www.advancedinstaller.com/user-g ... -file.html

Please let me know if you encounter any problem.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kaj78
Posts: 4
Joined: Thu Jul 06, 2006 5:29 am

Hi,

Thanks for that. I can't believe it was so simple (I've spent hours searching the user manual and the forums for a solution!)

Thanks Again!

kaj78

Return to “Common Problems”