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
- :
- Re: Overwriting an existing installation after uninstalling it
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
‎May 31, 2007
01:57 AM
Overwriting an existing installation after uninstalling it
Hi,
I need some urgent help when trying to overwrite an existing installation. ( Windows , Installshield 11.5 MultiPlatform SP1 )
1. I have to install a product in the same location as earlier
2. Based on some condition, I am calling the uninstaller.exe -silent from inside the installer
3. The _uninst/uninstall.dat is not removed.
4. When the installation proceeds it does not create the uninstaller.exe in this location ( _uninst ).
My need,
1. The uninstallation should clean up the installed location including the _uninst directory.
Thanks,
Venu.
I need some urgent help when trying to overwrite an existing installation. ( Windows , Installshield 11.5 MultiPlatform SP1 )
1. I have to install a product in the same location as earlier
2. Based on some condition, I am calling the uninstaller.exe -silent from inside the installer
3. The _uninst/uninstall.dat is not removed.
4. When the installation proceeds it does not create the uninstaller.exe in this location ( _uninst ).
My need,
1. The uninstallation should clean up the installed location including the _uninst directory.
Thanks,
Venu.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 31, 2007
10:53 AM
You could write some code that would delete the file and directory after the application is uninstalled. Then have your installation start.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2007
03:34 AM
Infact I tried to remove the directory after doing a wait for process inside preinstaller's queryexit.
But the directory is not being removed since it is used by the "installer" process itself. Is there a way by which we can get the current process that is using the resource and then use that process to delete it.
But the directory is not being removed since it is used by the "installer" process itself. Is there a way by which we can get the current process that is using the resource and then use that process to delete it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 28, 2007
02:11 AM
I am also facing the same issue. Has anyone found any workaround for this?
Thanks
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 28, 2007
03:55 PM
I am pretty sure that the recommeneded way to handle this would be to:
1. If previous version found - Run the uninstall code.
2. At the end of uninstall, prompt for reboot - so files can be deleted.
3. On start of machine continue install.
1. If previous version found - Run the uninstall code.
2. At the end of uninstall, prompt for reboot - so files can be deleted.
3. On start of machine continue install.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)