Create a Windows application, point to "new" on the "file" menu, and select "project ".
In the Create Project dialog box, select Visual Basic Project in the project type pane, and select Windows application in the template pane ". In the "name" box, type "my notepad ".
This project is added to Solution Explorer and the Form Designer opens.
In the toolbox, select the Windows Forms tab and drag the Button control to the form.
Double-click the Button control to add an event handler for the Button. Add the following code to the event handler: Shell ("Notepad.exe", AppWinStyle. NormalFocus). This will start Notepad.exe and focus on it.
On the "generate" menu, select "generate my notepad" for this application.
Create a deployment project
On the "file" menu, point to "add project" and select "new project ".
In the Add new project dialog box, select "Install and deploy Project" in the "project type" pane, and select "Install Project" in the "template" pane ". In the "name" box, type "my notepad installer ".
The project is added to Solution Explorer and opened in the file system editor.
In Solution Explorer, select the my notepad installer project. In the "properties" window, select the ProductName attribute and type "my notepad ".
Note that the ProductName attribute determines the name of the application displayed in the folder name and the "Add/delete programs" dialog box.
Add a Windows application to the installer
In Solution Explorer, select the my notepad installer project. In the file system Editor, select the application folder node.
On the "operations" menu, choose "add"> "project output ".
In the Add project output group dialog box, select my notepad from the project drop-down list ".
Select the "primary output" group from the list and click "OK ".
On the "generate" menu, select "generate my notepad installer ".
Deploy the application (Basic installer)
Skip this step if you are performing a complete drill.
In Solution Explorer, select the my notepad installer project. Select "Install" from the "project" menu ".
This will run the installer and install "my notepad" on the development computer ".
The remaining steps demonstrate the optional deployment functions.
Create shortcuts for Windows Applications
This step creates a shortcut for your application. During installation, the shortcut is placed on the desktop of the target computer.
In Solution Explorer, select the my notepad installer project. In the file system Editor, select the "Master output from my notepad" node.