I'm trying to get my package to copy the current contents of the install target directory to a predetermined folder prior to installation but having trouble getting the custom action to work. If I use the [appdir] it fails, if I use a custom search to create a property to pass it also fails (likely due to not being installed yet). I can only get the custom xcopy action to work if I use the actual path. This won't work as the customers have the ability to select the application folder which will point to the manually installed set of files that need to be copied to the backup location. IE this works as a command line for the XCOPY Launch File Custom Action:
D:\inetpub\wwwroot\*.* /E /I /Y "[ProgramFilesFolder]\WWW_BACKUP"
But this does not:
[appdir]\*.* /E /I /Y "[ProgramFilesFolder]\WWW_BACKUP"
Any Suggestions?
Once I get this working I need to be able to copy these files back to the original location if my installer is uninstalled. Having trouble getting it copy the files after the uninstall has been completed. What step in the Install Execute Sequence should I create this custom action under so the files are copied back as the last action of the uninstall?
TIA
FOLLOW US
Get the latest news in Application Packaging