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: Stop Installation + Prompt User if previously installed
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
Jun 28, 2010
04:33 PM
Stop Installation + Prompt User if previously installed
As the title says.
For example if have ANY version installed new or old, I want the installer to stop and prompt the user with a custom message explaining what needs to be done.
If you are going to say "use the upgrade feature", we are dealing with binary database files which need SQL scripts (SQLAnywhere) to be run against the database and we haven't found an easy way of doing that through IS other than just executing BAT files. And if one of them fails we are scared we are going to end up being in some funny state with IS (correct us if we are wrong). Any suggestions would be appreciated on the matter though.
As a stop gap though we are trying to do something as my first question.
For example if have ANY version installed new or old, I want the installer to stop and prompt the user with a custom message explaining what needs to be done.
If you are going to say "use the upgrade feature", we are dealing with binary database files which need SQL scripts (SQLAnywhere) to be run against the database and we haven't found an easy way of doing that through IS other than just executing BAT files. And if one of them fails we are scared we are going to end up being in some funny state with IS (correct us if we are wrong). Any suggestions would be appreciated on the matter though.
As a stop gap though we are trying to do something as my first question.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 29, 2010
06:05 PM
New InstallShield projects use a detect-only entry in the Upgrade table (you can see it in the Upgrades view) to see if a newer product version is present, along with a conditional ISPreventDowngrade custom action to display a message if a newer version is found. You could modify a copy of this to detect older versions with different product codes, assuming the earlier versions were installed using Windows Installer.
Otherwise, you could use a system search to find an earlier version, and display a message in a similar way.
Otherwise, you could use a system search to find an earlier version, and display a message in a similar way.