[wix-users] Custom action to backup folder before install
Carlos Sosa
carlos.sosa.us at outlook.com
Mon Oct 17 14:36:06 PDT 2016
Hello I need to back up the INSTALLFOLDER before upgrade/install.
I'm using a custom action as follows:
<InstallExecuteSequence>
<Custom Action="BackupDB" After="InstallInitialize" />
</InstallExecuteSequence>
But I cannot seem to be able to define the custom action appropriately
<Fragment>
<CustomAction Id='BackupDB'
BinaryKey='FooBinary'
DllEntry='FooEntryPoint'
Execute='immediate'
Return='check'>
<CopyFile Id="SomeId" SourceProperty="SOURCEDIRECTORY"
DestinationDirectory="INSTALLFOLDER" SourceName="*" />
</CustomAction>
</Fragment>
Using Visual Studio 2015 and Wix 3.1
Any help is appreciated.
Regards
More information about the wix-users
mailing list