Visual studio 2010 installer create shortcut


















Creating an installer within your existing Visual Studio project. Give your setup program a name and press OK:. The Setup Wizard will then walk you through the remaining steps. First click next and then decide if you need a Windows or Web application. Even if you did, you can still add them at a later date:. Then select the files that will be coming out of your application. Select Primary for all your exes, dlls etc. Or debugging symbols. But you will probably need to include documentation files, if you have those.

Click next:. Then use the next section to add any other files such as chm, pdf, rtf etc, and then select next:. To edit your project properties to eg change its name, right click on the project and select properties:. The Application Folder will specify where the software is located.

For example, if you wish this to contain the executable of your application, then copy the exe file, right-click the Application Folder and paste the application to it.

To change the destination of the application folder right-click the Application Folder in the File System window and choose Properties:. DefaultLocation gives you the overall structure of the folder location. Click Start. Click Run… Type Regedit. In the rightside window look for ProgramFilesDir. Rename and add any additional files as required. Once added, right-click on this folder to view its properties and make sure its AlwaysCreate property is set to true, to ensure this folder and its contents are created upon installation:.

In the properties, select the Icon field and in the drop down menu that appears, use the browse to identify the icon file that you want to use:. By default when you build your project it will build your main application. Build it by right-cliking on the installer project and choosing Build:. Once this is done, locate your project in Visual Studio, go into the Debug folder and you will see two different installers used for two different purposes:.

Test the installer by double-clicking one of them eg setup. Look on the desktop and program menus to check that all of your program shortcuts, files, folders etc have been correctly installed.

Hi Andy, Thank you for the detailed description. Please enlighten me! Yes, it was the exectuable contained in the Debug or Release folder that I had in mind, that exe which when you double-click on it runs the application you are working on. I will update this post to clarify this point better…. On the right side, you can see blank space having heading Name and Type. In that, you can right-click and then in the context menu select Create New Shortcut as shown below.

Run your application like. NET framework 3. After that you can see one pop up there you can select the prerequisites button then select what all prerequisites needed for your application to run Select any of the 3 radio buttons select 1st one Default. Now you can design your setup. You can give a banner image b. I wasted a few hours creating a shortcut in the User's Program Menu and then having the build fail!

Adding it to the target then dragging it to the program folder worked makes you wonder why there is a context menu to add a shortcut to the folder if that results in a build fail. Works for too. Jeff Roe Jeff Roe 3, 30 30 silver badges 44 44 bronze badges. The only thing I wanted to add is that it worked with icon size of 64x64 but not x That does not work for the app running in system tray Right click with the mouse and select Create New Shortcut.

You will be presented with a dialog that allows you to select for instance the application folder on the target machine. When you double click on this you see what is inside that folder. Now simply select the primary project output that "contains" your exe file. Community Bot 1 1 1 silver badge. Stefan Egli Stefan Egli I resolved this error by using a 64 x 64 icon.

Alexander Liberson Alexander Liberson 7 7 silver badges 16 16 bronze badges. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed.



0コメント

  • 1000 / 1000