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: Major Upgrade and un-installation of previous version issue
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
‎Oct 12, 2012
04:20 AM
Major Upgrade and un-installation of previous version issue
Hi All,
I am creating major upgrade setup project using Installscript MSI to upgrade 1.0 users of the software to 2.0.
All the files gets updated successfully and relative SQL scripts also gets executed successfully. The issue that I am facing is in version 1.0 installation one SQL script was marked to execute at the time of uninstall which will drop the databases. Now because of that after all files have been replaced and update scripts executed , at the end my database is getting droped. I guess this is because of the previous version getting uninstalled.
Is there any way I can restrict this script from executing when major upgrade is done?
Thanks,
Chand
I am creating major upgrade setup project using Installscript MSI to upgrade 1.0 users of the software to 2.0.
All the files gets updated successfully and relative SQL scripts also gets executed successfully. The issue that I am facing is in version 1.0 installation one SQL script was marked to execute at the time of uninstall which will drop the databases. Now because of that after all files have been replaced and update scripts executed , at the end my database is getting droped. I guess this is because of the previous version getting uninstalled.
Is there any way I can restrict this script from executing when major upgrade is done?
Thanks,
Chand
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 12, 2012
07:52 AM
In other words, Is there any option where we can disable components from previous version of setup from this upgrade project?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 15, 2012
03:42 PM
It's a little messy, but you can modify the cached MSI of your version 1.0 to change the conditions so that actions do or do not run as you desire.
I recollect that Robert Dickau demonstrated such code in the MSI classes he taught. Perhaps he could point you to that.
David Cole
I recollect that Robert Dickau demonstrated such code in the MSI classes he taught. Perhaps he could point you to that.
David Cole
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)