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: Installscript project
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
‎Apr 23, 2013
03:13 PM
Installscript project
I need to reproduce the "Completely uninstall old setup before installing new setup" installscript MSI/basic MSI feature in installscript project? Basically I want user to run the setup once and if its installed it runs the uninstall and automatically launch setup for new version.
I was able to detect if it's MAINTENANCE mode and uninstall but don't know how to automatically launch setup for new version.
Really appreciate any help.
Thanks
I was able to detect if it's MAINTENANCE mode and uninstall but don't know how to automatically launch setup for new version.
Really appreciate any help.
Thanks
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2013
08:29 AM
tt33333 wrote:
I need to reproduce the "Completely uninstall old setup before installing new setup" installscript MSI/basic MSI feature in installscript project? Basically I want user to run the setup once and if its installed it runs the uninstall and automatically launch setup for new version.
I was able to detect if it's MAINTENANCE mode and uninstall but don't know how to automatically launch setup for new version.
Really appreciate any help.
Thanks
I've tried calling setup functions after uninstall/Maintenance by doing this:
OnMaintUIAfter();
OnFirstUIBefore();
OnMoveData();
OnFirstUIAfter();
It runs setup but doesn't copy the files. It doesn't execute "OnInstallingFile".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2013
03:41 PM
You can call the UninstallApplication function which will read the uninstall string from the registry for the uninstall key specified and then launch the uninstall for you. If additional control is needed, you can also read the uninstall string of the old installation with the registry functions and then manipulate and launch the uninstall string value with LaunchApplication.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 26, 2013
03:05 PM
I got "Another instance of this setup is already running" if I try unistalling during installation.
joshstechnij wrote:
You can call the UninstallApplication function which will read the uninstall string from the registry for the uninstall key specified and then launch the uninstall for you. If additional control is needed, you can also read the uninstall string of the old installation with the registry functions and then manipulate and launch the uninstall string value with LaunchApplication.