How to make an Installer/Setup from your VB.Net Project

1
19

In this tutorial, you will learn how to make an installer or setup application from your VB.Net project. This tutorial also applies from different programming languages catered by Microsoft Visual Studio templates. Ex.(C#, C++, F#).

Making an installer is essential for your deployment of your created system especially when you need to install your project from the source to another computer.

First of all, the following applications I used during this tutorial are the following:

  1. Microsoft Visual Studio 2013.
  2. Microsoft Visual Installer from Microsoft Visual Studio Marketplace. (Its free to download the add-on don’t worry).

Note: There are some cases that the installed Microsoft Visual Studio 2013 has already a built-in template for making an installer. Mine has no built-in so, I downloaded the add-on and installed it to my Microsoft Visual Studio.

Here’s the procedure in making an installer from your project, just carefully follow this steps and you can create one in no time!

  1. Open your Microsoft Visual Studio 2013 and click “New Project” from their dashboard.
  2. Let’s assumed we have created a project from clicking the “New Project“. I named my project as “Sample Installer“.
  3. Then, click the link from above the Microsoft Visual Installer. After downloading, you will receive an .exe file(see Figure 1). Click it and let it finish its installation.

installer_VSI_bundle

 

Figure 1. Downloaded executable file from Microsoft Visual Studio Marketplace.

4. When the installation is complete, proceed by going to your project’s Solution Explorer. Right click Solution “‘Name of your project“‘ (mine is Solution ‘Sample Installer’), go to Add and choose “New Project…“(see Figure 2).

installer_samplepng

Figure 2. How to go to New Project for creating the installer or setup file.

Note: If you want to have an icon for your installer and your system, just simply go to Solution Explorer, right click the name of your project, go to Properties and at the Application Tab you can see the “Icon:” combo box and click “Browse” (see Figure 3). 

installer_iconpng

Figure 3. How to add an Icon for your setup or installer application.

5. Then, select from Templates -> Other Project Types -> Setup and Development -> Visual Studio Installer -> Setup Wizard. (see Figure 4 to see Setup Wizard). You can rename the setup name as you like.

installer_setupwizardpng

Figure 4. Setup Wizard.

6. After clicking Setup Wizard, you will be prompted to a windows form where you can customized your setup file. Mine, I just clicked Next -> Finish.

7. After the Visual Studio directs you to File System(name of your setup), right click on the Application Folder at the left side of the screen, then go to Add -> Project Output(see Figure 5) then click OK.

installer_outputpng

Figure 5. Locating Project Output.

8. After clicking the Project Output, drag the Primary Output from “name of the project” at the right side of the screen to the User’s Desktop at the left side of the screen. Click User’s Desktop and then right click the Primary Output from “name of the project” and click Create Shortcut to “name of the project” active. You can rename that file as you like. This procedure lets your setup application to create a desktop shortcut icon for your VB.Net project. After doing so, drag back your Primary Output from “name of the project” to the Application Folder and just leave the shortcut file on the User’s Desktop. (see Figure 6).

installer_sample1png

Figure 6. Creating a shortcut for your VB.Net project to the User’s Desktop.

      9. After creating a shortcut, you can customize your Setup Property Pages from the Solution Explorer by right clicking the Setup Project then go to Properties. This procedure lets you configure and see the details or files that your installer will install to a computer. Also, this procedure lets you decide on which specific computer you want to install your VB.Net project. This is for you to be familiarize in creating a more compact installer rather than creating a non-solid installer. As of now, we will just leave this step and proceed to step 10.

10. After doing step 8, we will now build our Setup Project but based on my experience in creating an installer, you should first rebuild your main project after you build your Setup Project. This is to ensure that your main project doesn’t have any errors. To build your Setup Project, right click on it then choose build. Wait for the Visual Studio to finish packaging your project and congratulations! You can locate your setup application by going to your project’s folder. You can see that there’s a new folder, (mine is Setup because we renamed our Setup Wizard to Setup) then go to Debug and you can see the Setup Windows Installer Package(see Figure 7)

setuplocation

Figure 7. Location of our Setup file.

You can use this Setup Windows Installer Package to install your VB.Net project to a certain computer you desire.

Note: In conclusion, the installed application bases its run time on your computer through its target .Net framework. Visual Basic projects depend on what target .Net framework was built for it.

 

RAR Extraction Password:

luffypirates

 

For inquires, questions or any other concerns, you can contact me through the following:

E-Mail: ianlavapiez@gmail.com

Facebook: facebook.com/kirk.lavapiez

Contact No.: +639263339008

To download the sample project, click here.

 

Facebook Comments
(Visited 128 times, 1 visits today)

1 COMMENT

  1. Im using Visual Studio 2008 and it’s already installed in my computer. Once i installed the Visual Studio Installer Projects Extension i received this message

    Set up blocked

    Correct the following problem and run the set up again.

    * Microsoft visual studio is required, but it is not installed on this computer. Please install it and retry.

LEAVE A REPLY

Please enter your comment!
Please enter your name here