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: upgrade from installscript to MSI
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
‎Jan 24, 2012
11:25 AM
upgrade from installscript to MSI
so we recently had this awful install script wrapper that packed in 2 other msi installers and called them to install them all.
I changed the solution into an msi that installs it all as a single product. I cannot get it to perform a major upgrade on the installscript product as I cannot find the UpgradeCode guid anywhere. It obviously has some mechanism under the hood to do its upgrades. Can I work this in somehow? I want it to completely uninstall the previous product before installing this one so I am open to alternatives though I would prefer an upgrade table entry if at all possible.
Custom action that does a silent command line uninstall? Other suggestions?
I changed the solution into an msi that installs it all as a single product. I cannot get it to perform a major upgrade on the installscript product as I cannot find the UpgradeCode guid anywhere. It obviously has some mechanism under the hood to do its upgrades. Can I work this in somehow? I want it to completely uninstall the previous product before installing this one so I am open to alternatives though I would prefer an upgrade table entry if at all possible.
Custom action that does a silent command line uninstall? Other suggestions?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 24, 2012
12:56 PM
If I try just calling the cached setup.exe and remove it that way it reboots upon removal. The software normally does not require a reboot on install or uninstall. So calling a command line removal is probably out
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2012
08:24 AM
I am not sure a Major Upgrade is possible. When one of our projects changed from a plain InstallScript type to InstallScript MSI, I used InstallScript to accomplish the uninstall in the following manner. Flexera support indicated that a complete uninstall had to be performed before installing this new version due to the fact that the InstallShield project types changed.
I'm not sure how you would handle that in a Basic MSI project - I haven't had to work on that kind.
HTH
PS: that was done in InstallShield 2010 but may not make a difference.
SdShowMsg( "Uninstalling Product X", TRUE );
nvUninstallResult = UninstallApplication( "{PRODUCT_X_GUID}", " -clone_wait", WAIT );
SdShowMsg( "Uninstalling Product X", FALSE );
if ( nvUninstallResult < ISERR_SUCCESS ) then
MessageBox( "There was a problem running UninstallApplication:\n" + Err.Description, SEVERE );
abort;
endif;
I'm not sure how you would handle that in a Basic MSI project - I haven't had to work on that kind.
HTH
PS: that was done in InstallShield 2010 but may not make a difference.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2012
03:32 PM
Thanks for the reply. What I ended up doing based on your response and a few other things I read stating that no MSI upgrade info is created by an installscript installer I created an install condition that detects the old version and throws an error dialog up and exits the installer.