Here are few steps that will guide you for
creating Setups for your Windows (C#) applications.
Step1: Open your Visual
Studio.Net and create a new project. Browse to Other Project Types ->
Setup & Deployment and select “Setup
Project” as your project type.
Step 2: Go to solution
explorer, click on File System button on top. It will open File
System tab. Browse to Application folder under File
System on Target Machine. Right click on the right pane; go to
Add à click File (will open file dialog). Browse your
executable (exe) file / project output.
Step 3: If you want to create desktop shortcuts
and Programs menu shortcuts for your application go to “User’s Desktop” under “File System on
Target Machine” and right click on right pane, click on “Create new shortcut”
Browse for your Application folder and select your executable file.
Write your shortcut name.
For Programs menu shortcut Select User’s Program
menu and follow the same step as for User’s desktop.
Step 4: To add/change your pre-requisites,
go to solution explorer and right click your project àClick on Properties (it will open property dialog page)
Click on Pre-requisites button. It will open Pre-requisites dialog
select the pre-requisites you want to install on client machine which needed by
your application to run. You can select install location as per your choice. If
you need pre-requisite to be packed with your Setup select 2nd option “Download pre-requisites from the same location
as my application”
Step 5: Customize your project properties like Manufacturer Name,
Manufacturer URL, Phone, Target platform, Title etc.
Step 6: Now you are finished. Build your project. It will create your
Setup package with the pre-requisites in Debug/Release folder.
Comments