

- DOWNLOAD VS_SETUP.MSI FOR VISUAL STUDIO 2010 HOW TO
- DOWNLOAD VS_SETUP.MSI FOR VISUAL STUDIO 2010 CODE
- DOWNLOAD VS_SETUP.MSI FOR VISUAL STUDIO 2010 WINDOWS
Right click the Input folder created and Add file to it, browse for the Sample.txt file in the Windows Application project we created earlier. Add an icon to the form like in below mentioned figure: You can decorate your form to add an icon to it, and that icon will also be required at the time of installation to create a shotcut icon to our application. That means the folder will always be created whenever we run the installer, after a fresh build release. Right-click on folder, select properties, and mark the Always Create property to True. The folder will be created just below the Application Folder, name that folder Input. So, right click on Application Folder in File system editor and add a folder. Now this folder creation logic has to be implemented in our setup project, so that when the application installs, it has all the pre-requisites required to run the application, like the Input folder and the Sample.txt file. Therefore, running the application will show two message boxes, one after the other showing text box text and text from Sample.txt file. Now we also need this Input folder and a Sample.txt file at the time of installation to be located at the location of installed application.įor file operations I added the namespace System.IO though it is unnecessary to do so. I chose to keep my txt file at the startup path so that I could explain how we can create files and folders at the time of installation. In my case bin\debug, it could also be bin\release as per the project build, and specify the file folder name and file name to read the content.
DOWNLOAD VS_SETUP.MSI FOR VISUAL STUDIO 2010 CODE
Write a few lines of code just to read the txt file from the Startup path. I called it Sample.txt to the bin\debug\Input folder, input is the custom folder I created to place my txt file. Let's read a file and show its output in a message box upon a button click. In the meanwhile, let's add some more functionality to our windows application. The Primary output will be added as shown below, having type defined as Output. the windows application project name) in the add output project window and select it as a primary output as shown below and click OK.

Out project specifies the project we are creating an installer to, like in the following figure: Right click on Application Folder and add an output project. You'll get to see Application Folder, User’s Desktop and User’s Program Menu. Now open the file system editor by clicking on the project and select the option to open file system editor, like in below figure: The project will be added to the solution. Right click on the solution and add a new project to your solution like in following figure:Īnd add a setup project by Other project Types->Setup and Deployment->Visual Studio Installer Now let’s create an installer for the same windows application. Just wanted to write few lines of code, so I binded the button’s click event to show text box's text Decorate the control properties however you want. I gave the name CreatingInstaller to my windows application, obviously you can choose your own.Īdding a new Windows Form Application in my solution and adding a text box and button to the default form resulted in the figure as shown below. Start the Showįirst, let’s create a simple one form windows application, with only a text box and a button.Ĭreating a windows application is just for the sake of having one to install. In this article I would like to explain a step by step process to create a windows application and a setup installer for the same in a very simple manner, that is easy to understand and follow knowing that there are a number of other ways to do the same thing. And guess what, they successfully found bugs in that too. The driving force for me to write this article is my QC team, who accept the main application for testing, and who also verified my setup installer with their 100% effort. There are numerous articles I found explaining to create a setup project, but some did not work, and some did not have a live example to follow.
DOWNLOAD VS_SETUP.MSI FOR VISUAL STUDIO 2010 HOW TO
There are number of ways provided by Microsoft to create a setup project for windows application.īut when I started to create one, I got nothing but queries and confusions of how to start and where to start.
