.NET Framework Bookmark and Share   
 index > .NET Framework Setup > Help Needed with creating installer file for a .net Windows App
 

Help Needed with creating installer file for a .net Windows App

i hav to create a installer file for a .net windows project which when we run sud 1st check for SQL server if not available then it sud install it and thn run SQL script to create tables and stored procedure before installing the Application....is it possible to do ths
SVarun
Hi SVarun,

Sorry for delay.

As far as I know, Visual Studio supports the deployment that you describe.
You can include SQL Server package with your application installer. Visual Studio can help developer to automatically install the prerequisite prior to the application.

After the application has been built in Visual Studio, we can deploy the application via Setup project.
For more information on how to create setup project, please see: http://msdn.microsoft.com/en-us/library/19x10e5c.aspx
Thenright click your setup project >> go to Properties>> click "Prerequisites....".
In the Prerequisites dialog box, you can choose the SQL Server installer that you want to deploy.

For your second question on running SQL script to create tables and stored procedure, we can usea Custom Action to achieve that. Here is a helpful tutorial: http://msdn.microsoft.com/en-us/library/49b92ztk.aspx

Hope this helps. If you have any concern, please feel free to let me know.

Best regards,
Yichun Chen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen

You can use google to search for other answers

Custom Search

More Threads

• .NET framework 3.0 setup CPU problem
• Packing all DLL's into EXE - Urgent
• Online install fails with authenticated proxy Internet connections
• Microsoft .NET Framework 3.0 Error Code: 0x643
• Error while install visual studio 2005 service pack 1
• Does anyone know of a easy way to convert numerous projects from .net 2.0 to 3.5?
• Create and Register Type library from Managed DLL
• svcutil/framework version
• Need bakup for my error
• .NET Framework big problem - Cannot install / uninstall / update - How to remove?