SQL Server Express prerequisite and named instance - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kmh
Posts: 1
Joined: Wed Aug 18, 2010 3:56 pm

SQL Server Express prerequisite and named instance

I have an installer that successfully installs Windows Installer 4.5, .NET 3.5 SP1, and SQL Server Express 2008 R2 with a named instance, as prerequisites, and the product, which includes a database. It successfully uninstalls the product and the database, but intentionally leaves the prerequisites on the computer. However, it would be better not to leave the named instance of SQL Server Express. Is there a way to install SQL Server Express in two steps: the first as a prerequisite that would remain when the product is uninstalled, and the second as a named instance associated with the product to be removed when the product is uninstalled?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL Server Express prerequisite and named instance

Hello,

I am not sure of the command line tools sql has, but I am sure you can create a custom action that runs during uninstall.
That custom action would launch a command line sql tool that would remove the named instance. Please refer to your sql server's documentation on how to remove a named instance through the command line.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”