Wix -- Backup the folder while installation
I want to backup the folder before the new files are overwritten using WIX control.
Example: My installation folder is "Ifolder", I upgraded my product with the latest changes and created the setup files. I have to install my latest set up in the same "Ifolder". For this case I want to take a backup of "Ifolder" before the new files are overwritten into the same folder at 开发者_JS百科the time of installation.
Please add your points in this case.
You can try to use the open source SystemTools wix extension here: http://msiext.codeplex.com.
An example, from the Demo:
<!-- copy all the files to a subdirectory, delete them on uninstall -->
<AppSecInc:CopyFiles Id="CopyAll" CopyOnInstall="yes" Recurse="yes" Source="[INSTALLLOCATION]" Overwrite="yes" Target="[INSTALLLOCATION]\CopyOfAllFiles" Wildcard="*.*" />
<AppSecInc:DeleteFiles Id="DeleteAll" DeleteOnUnInstall="yes" Recurse="yes" Path="[INSTALLLOCATION]\CopyOfAllFiles" Wildcard="*.*" DeleteEmptyDirectories="yes" />
精彩评论