- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installshield unable to backup a folder before installing new files
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Installshield unable to backup a folder before installing new files
I am not able to have my install script to copy all the files from an installed folder (C:\ProgramData\CompanyName\ProductName\config) to a backup folder (C:\ProgramData\CompanyName\ProductName\config_20210930[10:12:01]) before installing the new files to it. Instead it copied the newly installed files to the backup folder.
Example:
nResult = XCopyFile ( C:\ProgramData\CompanyName\ProductName\config\myfile.txt, C:\ProgramData\CompanyName\ProductName\config_20210930[10:12:01], COMP_NORMAL);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
What is your project type?
Are you doing upgrade like when version1 is installed before installing verison2 you are creating backup of version1 is my understanding correct?
If you are using the script as a customaction then you need to sequence it at app search of installexec sequence or any anything before uinstalling older version or updating older version.
If you are using install script function , try on firstuibefore
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)