Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Setup Project with SQL Express included
 

Setup Project with SQL Express included

I have two projects in my solution. One EmbedSQLExpress that has a wrapper class and the SQLExpress setup file and all it's dependencies extracted. The other is my custom application.

I create a setup project that includes the output of both projects, plus all the dependencies. When I run my setup.exe that is generated. Everything copies to the correct file system, but no SQLExpress is installed.

How do I get the setup to exectue my EmbedSQLExpress app rather than just copy it over?

Thanks
Hells Kitchen Sink  Thursday, July 30, 2009 2:22 PM
I have gotten this to work. since the embedsqlexpress.exe was not an install file I've set the Install File property to false and it worked.

So, Just to clear this up I had a console application that was a wrapper for an installation of sqlexpress like in the previous link. I had a custom app that needed the database. I added both to a Setup and Deployment project and set the embedsqlexpress.exe as an Install Custom Action. In the properties for this action I set the Install File property to false.

Hells Kitchen Sink  Tuesday, August 18, 2009 11:44 AM
It's not exactly clear to me what your goal is, butthethose names make me think you're trying to install SQL Express. If you are, thenyou should really be using the Prerequisites button in your setup project's properties to install SQL Express. If you're just trying to run a program at setup time use a custom action.
Phil Wilson
PhilWilson  Thursday, July 30, 2009 8:16 PM
My goal is to have one setup file that will first install SQL Express via the EmbedSQLExpress project and then install my custom application. Here is what I've tried but with no luck

I add my custom app to the setup project and then all the release files from EmbedSQLExpress. I then point a custom action at EmbedSQLExpress.exe in the install folder. I would expect that during the install this would get called first and then my custom app would be installed.

The thing is, if I go to my EmbedSQLExpress project and double click the exe, everything works right, sql express installs, so, it's working correctly. I'm missing something in the setup project.

I don't add "primary output" from the EmbedSQLExpress.

I'm doing almost exactly what's going on here in the Deploying SQL Server 2005 Express Edition by Using a Wrapper
http://msdn.microsoft.com/en-us/library/bb264562(SQL.90).aspx


Hells Kitchen Sink  Friday, July 31, 2009 6:39 AM
That won't work, that's why the Prerequisites button is used to build a setup.exe to install SQL Express before installing your MSI. You cannot install SQL Express from your setup, that's why the doc at that link says:

NoteA SQL Server Express wrapper cannot be MSI-based because Windows Installer does not support multiple instantiation of the Windows Installer service.

Phil Wilson
PhilWilson  Friday, July 31, 2009 9:39 PM
I have gotten this to work. since the embedsqlexpress.exe was not an install file I've set the Install File property to false and it worked.

So, Just to clear this up I had a console application that was a wrapper for an installation of sqlexpress like in the previous link. I had a custom app that needed the database. I added both to a Setup and Deployment project and set the embedsqlexpress.exe as an Install Custom Action. In the properties for this action I set the Install File property to false.

Hells Kitchen Sink  Tuesday, August 18, 2009 11:44 AM

You can use google to search for other answers

Custom Search

More Threads

• How to sign setup.exe in clickonce?
• Application Name Problem during Setup and Deployment
• ClickOnce Installs fail, ADODB 7.0.3300 required?!
• how to create desktop shortcut automatically by setup project?
• Sourcepath in Setup Project is always changed from Relative to Absolute Path
• Desktop Shortcut
• GenerateApplicationManifest build task
• Smart forms vs remoting
• Accessing the DOM object.
• Message to remove previous installation