Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have create a simple application using visual studio 2010. Now i want to deploy the application. I read in one website. They say some instruction. I followed that.

• Right-click the Solution item in the Solution Explorer. Choose Add | New Project... in the context menu. In the invoked Add New Project dialog window, locate the Other Project Types | Setup and Deployment node in the Project types section. Choose Setup Project in the Templates section. Enter the required Setup project name.

But When i select Other Project type, There is no items to select Setup Project. Now how can i deploy that application. I have create Database separately using SQL Express 2008.

I use the connection string like

public History()
{
InitializeComponent();
cn = new SqlConnection(@"Data Source=hi-pc;Initial Catalog=For_Room;Integrated Security=True");
}

Is it correct format to the application. If i deploy the application can i execute in all the systems?
Posted

I suspect that you are using Visual Studio 2010 Express.
Unfortunately, the Setup & Deployment projects are not available in the Express versions.
If you need to create an installer for your project in VS Express, then you can use NSIS, an open source system to create Windows Installers:
http://nsis.sourceforge.net/Main_Page[^]
 
Share this answer
 
v2
Comments
Joezer BH 1-Sep-13 9:36am    
5ed!
Thomas Daniels 1-Sep-13 9:38am    
Thank you!
Sergey Alexandrovich Kryukov 1-Sep-13 11:38am    
Looks good, but I did not try it. 5ed.
I recommend WiX as the most fit for MSBuild and Visual Studio. Please see my answer.
—SA
Thomas Daniels 1-Sep-13 11:43am    
Thank you!
WiX looks good, I think I'll use it in the future.
Sergey Alexandrovich Kryukov 1-Sep-13 11:49am    
I switched to it recently for out company, as we are not satisfied with available VS Setup Project type, which is being deprecated, so I got a good experience using WiX.
—SA
I would highly recommend WiX:
http://en.wikipedia.org/wiki/WiX[^],
http://wixtoolset.org/[^].

In my past answers, I answered some particular questions, but pay attention on my argument in favor of WiX: this framework meets MSBuild standards and integrate in Visual Studio very well. In this respect, it's more legitimate than those Visual Studio project templates which are not always available and are being deprecated. Please see:
Custom setup project[^],
How to conditionally install components based on processor architecture type (32-bit or 64-bit)?[^].

Good luck,
—SA
 
Share this answer
 
Comments
Thomas Daniels 1-Sep-13 11:43am    
+5!
Sergey Alexandrovich Kryukov 1-Sep-13 11:50am    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900