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
- :
- Supress SQL Connection on UnInstallation
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 07, 2011
12:27 AM
Supress SQL Connection on UnInstallation
Hi,
I have created an installer using Basic MSI in Installshield 2011. I have included SQL Express 2011 R2 as optional feature. I am also using SQL Connection to run SQL Scripts at install time. The optional feature which installs sql express 2008 R2 is "SQLInstallation".
Now the problem is even if the user does not install sql feature at the uninstallation it still trys to connect to sql and run thd sql script (drop script).
So How can I stop running sql scripts at uninstallation if the sql is not selected at installation time?
I have created an installer using Basic MSI in Installshield 2011. I have included SQL Express 2011 R2 as optional feature. I am also using SQL Connection to run SQL Scripts at install time. The optional feature which installs sql express 2008 R2 is "SQLInstallation".
Now the problem is even if the user does not install sql feature at the uninstallation it still trys to connect to sql and run thd sql script (drop script).
So How can I stop running sql scripts at uninstallation if the sql is not selected at installation time?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2011
03:14 PM
I think that you just need to associate the drop script with the "SQLInstallation" feature so that the underlying component of the drop script will not be installed when you do not install the feature.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2011
10:57 PM
I have already associated drop script sqlinstallation feature but still it tries to connect to sqlserver on uninstallation
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
12:05 AM
check how many sql connections are created in the sql script view.
and condition them such that none of them will try to connect tot eh sql server if the feature is not selected.
and condition them such that none of them will try to connect tot eh sql server if the feature is not selected.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
02:46 AM
I have only one sql connection and it has been associated with optional feature only.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
02:47 AM
mano.n.s75 wrote:
check how many sql connections are created in the sql script view.
and condition them such that none of them will try to connect tot eh sql server if the feature is not selected.
I don't know how to put the condition that if sqlserver is not already installed then the script shouldn't run
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
09:26 AM
A verbose log may help you troubleshoot the issue. You would need to find out why the drop script is getting uninstalled when you unselect the "SQLInstallation" feature for an installation. KB article Q104807 explains how to create the log.