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
- :
- Migration from Installscript
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 04, 2008
05:25 AM
Migration from Installscript
Hi All,
I've rewrote a dated installscript installer as an MSI project. (I'm fairly experienced with MSI projects but not at all with Installscript)
New install works fine as an MSI - it works better than it used to and therefore the rewrite has been generally justified, although I have one outstanding issue...
I need to ensure that any previous version of the product is uninstalled. It doesn't matter whether this is automatic or whether it forces the user to do so, before allowing the new install. I've looked at the old installscript project and I can't find any record of an upgrade code, so I guess this was introduced for MSIs.
I tried setting the product code to be the same, hoping it may detect that a previous version is installed, and force the user to uninstall before continuing. However, the new product sort of just installs in addition to the old one, leaving components from both installs present. The add/remove programs dialog shows only one entry for the product, presumably due to the GUID clash.
Any ideas on where to go next would be greatly appreciated.
I've rewrote a dated installscript installer as an MSI project. (I'm fairly experienced with MSI projects but not at all with Installscript)
New install works fine as an MSI - it works better than it used to and therefore the rewrite has been generally justified, although I have one outstanding issue...
I need to ensure that any previous version of the product is uninstalled. It doesn't matter whether this is automatic or whether it forces the user to do so, before allowing the new install. I've looked at the old installscript project and I can't find any record of an upgrade code, so I guess this was introduced for MSIs.
I tried setting the product code to be the same, hoping it may detect that a previous version is installed, and force the user to uninstall before continuing. However, the new product sort of just installs in addition to the old one, leaving components from both installs present. The add/remove programs dialog shows only one entry for the product, presumably due to the GUID clash.
Any ideas on where to go next would be greatly appreciated.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 04, 2008
09:46 AM
Although I can test for a previous version using an install condition and force the user to uninstall the old version, it would be better if the old version could be uninstalled automatically, so that deployment using group policies is immediately possible.
I've a feeling that this isn't going to be possible...
Thanks for any pointers
Mark
I've a feeling that this isn't going to be possible...
Thanks for any pointers
Mark
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 04, 2008
01:22 PM
Windows Installer is only designed to upgrade and maintain Windows Installer based products. There's no built-in functionality to upgrade or manage installers that don't use MSI.
You're probably going to want to roll a custom action for this situation. You could probably just locate instances of the previous product codes on the machine and remove them procedurally in a Custom Action of some kind.
This could even be done as a prereq.
You're probably going to want to roll a custom action for this situation. You could probably just locate instances of the previous product codes on the machine and remove them procedurally in a Custom Action of some kind.
This could even be done as a prereq.