This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Copy file before install begins and then after
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 24, 2010
09:55 AM
Copy file before install begins and then after
Need to find out if anyone has a script to search for a file copy it to a temp directory before install begins. Then copy it back over writting the current file after install completes. Any replies are greatly appreciated
(3) Replies
‎Aug 25, 2010
02:39 PM
What kind of project is this---InstallScript or MSI? With InstallScript, for example, you could find the file with FindAllFiles and copy it somewhere with XCopyFile, and later copy back using the same function... (That's assuming it's not an option just to avoid overwriting the file in the first place.)
‎Aug 26, 2010
09:36 AM
Before going too far down that road, those types of custom actions have repercussions on repair, self-repair, upgrades, and so on. Is it an option just to avoid installing/overwriting that file if it already exists?