开发者

Wix -- Backup the folder while installation

开发者 https://www.devze.com 2023-03-04 07:51 出处:网络
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 setu

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" />
0

精彩评论

暂无评论...
验证码 换一张
取 消