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
- :
- I would but...
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
‎Apr 04, 2011
09:04 AM
Running SQL script on fail only
Hi,
I'm trying to Deploy a SQL database through installshield (installscript project), but I want to have it so that if the database exists already, script A will fail (which happens) but only in this case, call on script B. Is there any way to do this?
Regards,
J
I'm trying to Deploy a SQL database through installshield (installscript project), but I want to have it so that if the database exists already, script A will fail (which happens) but only in this case, call on script B. Is there any way to do this?
Regards,
J
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 06, 2011
05:46 AM
Wouldn't you do this using SQL statements, such as if not exists do A if exists do B?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 06, 2011
07:50 AM
I want to also do some custom actions in the installer if SQL fails. Just curious.