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
- :
- How to restore overwritten files at uninstall?
Subscribe
- 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
‎Mar 24, 2008
10:53 AM
How to restore overwritten files at uninstall?
Hello,
I'm a new at InstallShield. I been looking for a couple of days how to solve my issue but with no results.
I'm using InstallShiled 2008 Premier. Developing in Windows XP, and deploying in Vista.
My package installs an extra feature to an already installed application. At installation overwrites a couple of DLLs with newer versions and adds some additional files.
When I uninstall the addtional files are removed, but the overwritten DLLs remain. I need to restore the original DLLs so that the already installed application can run. How do I do that?
Thank you in advance for your help,. Regards,
Patricio.
I'm a new at InstallShield. I been looking for a couple of days how to solve my issue but with no results.
I'm using InstallShiled 2008 Premier. Developing in Windows XP, and deploying in Vista.
My package installs an extra feature to an already installed application. At installation overwrites a couple of DLLs with newer versions and adds some additional files.
When I uninstall the addtional files are removed, but the overwritten DLLs remain. I need to restore the original DLLs so that the already installed application can run. How do I do that?
Thank you in advance for your help,. Regards,
Patricio.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
11:21 AM
You could write 2 custom actions to do it...
The first one would be called at INSTALL time of you app to backup the old files.
The second one would be called at UNINSTALL time of your app to restore the old files.
InstallScript would be quick and easy for this.
The first one would be called at INSTALL time of you app to backup the old files.
The second one would be called at UNINSTALL time of your app to restore the old files.
InstallScript would be quick and easy for this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
12:05 PM
Thank you alegerlotz for your answer.
Yes, it seems that custom actions could do it, but it seems that it should be an easier way to do it. The installer is already going to the process of detecting which files will be overwriten, so that I though it would be a matter of a setting to have the option to recover the original files on uninstall.
I am using the Visual Studio integration so that the DLLs I'm installing are not referenced by name but instead as.Primary_Output. I will have to find out how to get the target DLLs names at runtime in the custom action, see which ones are going to be replaced, and copy them to a backup folder.
Thank you,
Patricio.
Yes, it seems that custom actions could do it, but it seems that it should be an easier way to do it. The installer is already going to the process of detecting which files will be overwriten, so that I though it would be a matter of a setting to have the option to recover the original files on uninstall.
I am using the Visual Studio integration so that the DLLs I'm installing are not referenced by name but instead as
Thank you,
Patricio.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
07:44 AM
Yeah I would also like know the answer to this one without scripting
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
07:34 AM
The installer is already going to the process of detecting which files will be overwriten, so that I though it would be a matter of a setting to have the option to recover the original files on uninstall.
Except that the installer doesn't save the original files. You have to do that if you want to restore them.
Except that the installer doesn't save the original files. You have to do that if you want to restore them.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 10, 2008
05:49 PM
I had to do this as well.. I ended up creating batch files that run in the back ground to back up the files, then on uninstalll, put the original files back...
Only problem is - now my uninstall takes files away that it didn't install ....
:eek: :mad:
Only problem is - now my uninstall takes files away that it didn't install ....
:eek: :mad: