Page 1 of 1

How to save file beofre installation

Posted: Fri Dec 23, 2011 3:20 am
by Joc02
Hello,

I would like save any files before installation.
In my exemple I deploy a WebSite and I've a default image which name : logo.gif.
But my client can change this
I can't use the option on install file, because I've a lot file neer this and I use a *.* wildcard.

So I'd like save my file, uninstall the old version, re-install the new version and copy the save file into the project.

Re: How to save file beofre installation

Posted: Sun Dec 25, 2011 4:22 pm
by giaviv
I am sorry, but I don't understand what you are trying to do or what the issue is.
Could you please clarify?

Re: How to save file beofre installation

Posted: Wed Jan 04, 2012 2:40 am
by ulrichard
The problem is that an update is essentially uninstalling the old version and installing the new one. Windows installer has some black magic to decide which file to keep if there are changes, or newer files, but start reading the docs... and you curse at Microsoft.

I wish there was a cleaner solution, but we do it by calling xcopy from the installer script to backup to temp and then restore.

Maybe there is something in InstallAware or Windows installer to treat files like configuration files.
In the debian packaging system that's straight forward...