.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to create setup file for windows application

Posted By: jyothi     Posted Date: November 25, 2010    Points:2   Category :C#
hi all,

i developed one windows application in c#.net. now i have to create a setup file to install that application in client system.
in client system he doesn't have sqlserver2008 express edition. while i am creating the setup file i have to install sqlserver2008 express edition and i have to create a database.

this is my requirement. how to do that.

thanks in advance.


jyothi

Responses
Author: Jean Paul             
Posted Date: November 26, 2010     Points: 5   

You can use the custom actions in the Setup and Deployment project.

Step1: Create new Setup Project from New Project > Setup and Deployment

Step2: Right click on it and select View > Custom Actions

Step3: In the Commit folder, right click and select Add Custom Action

Step4: Choose your custom exe to launch

Jean Paul http://jeanpaulva.com/
Author: SureshM             
Posted Date: November 26, 2010     Points: 5   

1. In Solution Explorer, right-click to select your solution, point to Add, and then click New Project.

2. In the Project Types pane, select the Setup and Deployment Projects folder.

3. In the Templates pane, select Setup Project. Name the project "yoursetup". Click OK.
A setup project is added to the solution.

4. In Solution Explorer, right-click "yoursetup", point to Add, then choose Project Output.
The Add Project Output Group dialog box appears.

5. "yoursetup" is selected in the Project box.

6. From the list box, select Primary Output, and click OK.
A project item for the primary output of "yoursetup" is added to the setup project.
Now add a custom action to install the "yoursetup".exe file.

7. In Solution Explorer, right-click the setup project, point to View, and then click Custom Actions.
The Custom Actions editor appears.
8. In the Custom Actions editor, right-click the Custom Actions node and choose Add Custom Action.
The Select Item in Project dialog box appears.
9. Double-click the Application Folder in the list box to open it, select Primary Output from "yoursetup"(Active), and click OK.
The primary output is added to all four nodes of the custom actions - Install, Commit, Rollback, and Uninstall.
10. In Solution Explorer, right-click the "yoursetup" project and click Build.

Now you can get the exe from your project folder.

then ....
You should have a backup of the Database which one is used for development (recently)

You have to install sqlserver 2008 into your client's machine.
when install, please aware of the server name, it is used into the connection string of your application.

after the installation, you may restore the backup.


Author: SureshM             
Posted Date: November 26, 2010     Points: 5   

1. In Solution Explorer, right-click to select your solution, point to Add, and then click New Project.

2. In the Project Types pane, select the Setup and Deployment Projects folder.

3. In the Templates pane, select Setup Project. Name the project "yoursetup". Click OK.
A setup project is added to the solution.

4. In Solution Explorer, right-click "yoursetup", point to Add, then choose Project Output.
The Add Project Output Group dialog box appears.

5. "yoursetup" is selected in the Project box.

6. From the list box, select Primary Output, and click OK.
A project item for the primary output of "yoursetup" is added to the setup project.
Now add a custom action to install the "yoursetup".exe file.

7. In Solution Explorer, right-click the setup project, point to View, and then click Custom Actions.
The Custom Actions editor appears.
8. In the Custom Actions editor, right-click the Custom Actions node and choose Add Custom Action.
The Select Item in Project dialog box appears.
9. Double-click the Application Folder in the list box to open it, select Primary Output from "yoursetup"(Active), and click OK.
The primary output is added to all four nodes of the custom actions - Install, Commit, Rollback, and Uninstall.
10. In Solution Explorer, right-click the "yoursetup" project and click Build.


Author: jyothi             
Posted Date: November 26, 2010     Points: 5   

thank you all,

my client requirement is he has to install database and sqlserver when he click on my application setup.

i.e he want those(sqlserver and database setup) in my application setup file.

can we do like that.

thanks & regards,

Jyothi

Author: Sajid P K             
Posted Date: November 26, 2010     Points: 5   

Jyothi,

Please check follwing link is help full..


http://msdn.microsoft.com/en-us/library/bb264562(SQL.90).aspx




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend