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 disable minor/major upgrades?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 08, 2010
06:36 PM
How to disable minor/major upgrades?
I currently develope InstallShield 2009 IS-MSI project. I did the jump from InstallShiled 5.0. When I run the 2009 setup on the top of the 5.0 install then the installation behaves like the initial one which is expected. When I run my 2009 setup on the top of the 2009 install then I have to deal with the upgrades. I want my setup to behave like it was the initial clean install without invoking the upgrade process. Is there any setting which will allow me to achieve it? I already looked under Media\Upgrades\Upgrade Windows Installer Setup in project tree but there is nothing there to change that behaviour.
I would appreciate any help on this one!
Thanks!
I would appreciate any help on this one!
Thanks!
(2) Replies
‎Jun 09, 2010
08:54 AM
You can make an MSI act like a first time install every time, but it isn't particularly clean, and by doing so you will lose the ability to uninstall it, and will lose its in-built repair functionality.
To do it, add a property called ARPSYSTEMCOMPONENT to the Property Manager with a value of "1" to prevent the app from showing in the Add/Remove Programs (Programs and Features) applet.
Condition the following MSI standard actions so they will never execute:
RegisterProduct
RegisterUser
PublishFeature
PublishProduct
If these actions don't run, Windows Installer won't have the registry keys its needs to recognize that your product has been installed, so it will always act as a first-time install. (But since it won't recognize your product, you won't be able to uninstall it.)
Note also that the components in your product will still be individually registered, but those registry entries will be "orphans" because the corresponding product entries won't be there.
I would suggest that you look into using an InstallScript project instead, if you can, as it is better able to install without leaving a footprint than an MSI.
To do it, add a property called ARPSYSTEMCOMPONENT to the Property Manager with a value of "1" to prevent the app from showing in the Add/Remove Programs (Programs and Features) applet.
Condition the following MSI standard actions so they will never execute:
RegisterProduct
RegisterUser
PublishFeature
PublishProduct
If these actions don't run, Windows Installer won't have the registry keys its needs to recognize that your product has been installed, so it will always act as a first-time install. (But since it won't recognize your product, you won't be able to uninstall it.)
Note also that the components in your product will still be individually registered, but those registry entries will be "orphans" because the corresponding product entries won't be there.
I would suggest that you look into using an InstallScript project instead, if you can, as it is better able to install without leaving a footprint than an MSI.
‎Jun 09, 2010
09:56 AM
Kathy,
Thank you very much for your reply. I agree with you, it would not be a clean solution and will defeat the purpose of using the MSI. It will make more sense to come up with an installscript only project.
Thank you again,
Bartek
Thank you very much for your reply. I agree with you, it would not be a clean solution and will defeat the purpose of using the MSI. It will make more sense to come up with an installscript only project.
Thank you again,
Bartek