Deploying .Net Applications
- Create a test project
- Create a project that adds two numbers

- Use this code for the button
lblResult.Text = CType(txtNum1.Text, Integer) + CType(txtNum2.Text, Integer)
Create a Development Project
- Click on the file menu
- Select New Project

- Under Other Project Types
- Select Setup and deployment

- Select Setup project
- Call it Calculator Setup
- Change the dropdownlist for solution to Add to Solution
- Click Ok


File system designer on the left
- Select calculator setup project

- Go to the Properties Window
- Change product name to “Calculator”

- Right click on application folder

- Select Primary output
- Configuration=(active)
- Ok


- Open Windows Explorer
- Navigate to your project

- Drill down to the release folder
Here are your installation files:

Run the setup.exe and your program gets installed
Test it
Now go to your control panel and uninstall it
An uninstall is created for you
It installs it under programFiles/None/Calculator
However it does not get installed to your desktop or start menu
You have to go into C:\programsFiles\None\Calculator
Here is my program, notice it has no icon

- Select the Start button
- Control Panel
- Add/Remove program
- Select your calculator

Visual Studio automatically gives you the ability to uninstall your program
