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?
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.
FOLLOW US
Get the latest news in Application Packaging