We tried to do this with our configuration files.
The issue we faced was that because RemoveExistingProducts came early
on, the old file was removed with the old product, but we wanted it
remain untouched by the installer during an upgrade or if the user
manually uninstalled the application.
At first we tried using CopyFiles, but that doesn't work because you can
only schedule CopyFiles once, so you can't use it to backup and then
restore the files.
We settled on making the configuration files Permanent, Never-Overwrite
in the new installer and scheduling RemoveExistingProducts after
InstallFinalize. Because the files are Permanent, the upgrade will not
overwrite them and RemoveExistingProducts will not remove them because
there are now two products using those components so the reference count
will not go to 0 when the older version is removed.
--
Bill Arnette
www.starwitness.com <http://www.starwitness.com/>
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Balaji
Nidadavolu
Sent: Wednesday, August 01, 2007 9:44 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] backing up the existing files while installing
Hi,
Our current requirement is something like this.
Requirement(in WIX) : We are currently adding a component to the
existing software. While installing the component, we need to take a
backup of 2 files since they will be replaced with their latest
versions. While uninstalling the component, we need to replace the newer
versions with their older version counterparts.
Can anyone please let us know if there are any properties that we can
use in WIX that need to be set, rather than writing custom actions.
You help is desperately sought.
Thank you,
Regards
Balaji.
DISCLAIMER ========== This e-mail may contain privileged and
confidential information which is the property of Persistent Systems
Pvt. Ltd. It is intended only for the use of the individual or entity to
which it is addressed. If you are not the intended recipient, you are
not authorized to read, retain, copy, print, distribute or use this
message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems
Pvt. Ltd. does not accept any liability for virus infected mails.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users