Programming Samples

Click here to go to:



Excel VBA

Word VBA

MS Access

Python

T-SQL

SSIS

SSRS

Power BI

Crystal Reports

SSAS

SQL Replication

C# Code

ASP .NET Code

Oracle PL/SQL

Database Diagramming


Back to Home Page


Visual Studio - Windows Setup and Deployment Project

Setup and Deployment Wizard Project

This article describes how to create a Setup and Deployment Project for a Windows Application created in Visual Studio using the Setup Wizard. Additional information about how to ensure that the project appears in the All Programs menu is included as well as how to include an icon in the menu for the Windows App.

Adding a Setup and Deployment Project

While in Visual Studio in your Windows Application, right click on the Solution and select Add, New Project.

Add New Project

Select Setup and Deployment from Other Project Types and select Setup Wizard.

New Setup Project

The Wizard begins, click Next.

Setup Wizard1

Select Create a setup for a Windows application and click Next.

Setup Wizard2

Select Primary Output from <Your Application> and click next.

SetupWizard3

Select any other files to include in the Setup project by clicking Add.

SetupWizard4

Click Finish to complete the Setup Project

SetupWizard5

Customizing the Setup and Deployment Project

Click on the Application Folder in the FileSystem tab. If it is not open, click on View in the Menu bar, select Editor and click on FileSystem. Take note of the Default Location Property. The Manufacturer and ProductName should be set for the project prior to building it.

Click on the Deployment Project Name and set the ProductName to the application name you want to appear in the Programs folder and Manufacturer to the name of the folder within the Programs folder that you want the application to be created inside.

The application will not install in the Start\All Programs folder automatically. A shortcut must be added to the User's Program Menu from the Application Folder. To do so, right click on the Primary Output from <Your ApplicationName> and select create Shortcut to Primary Output...

Create Shortcut

Rename the Shortcut to the name that should appear in the All Programs menu.

Rename Shortcut

I added an icon to the Properties that will also appear in the Start\All Programs menu. Click on the Setup Project and select Properties and click on the AddRemoveProgramsIcon. The icon must be added to one of the FileSystem folders in the setup project to be added.

Custom Icon for Setup Project

Testing the Setup and Deployment Project

Run the .msi installation file to test it.

Setup.msi

Click through the windows to install your application.

Installation Folder Confirm Install Install Progress Install Completion

Verify that the program in stalled in the All Programs menu with the correct ProgramName and Icon.

s