Visual C # project to make the installation wizard installation package

First, create a project.

  Solution Right → Add → New → Project → Other Project Types Setup and Deployment → Visual Studio Installer → Installation Wizard, modify the project name → OK.

  

 

   

 

 

  

 

 

  

 

  

 

  

 

 

   Here we do not have to add additional accessories, so click "Finish".

  

 

 

   Right-click the solution of setup1, select "Properties"

  

 

 

   Select "Prerequisites"

  

 

 

   Radio buttons, select "From my application with the same location Download prerequisites" → OK

 

Second, add files and settings.

   

  1. Click on the left of the "Application Folder" → from the list on the right property, modify the properties DefaultLocation "[ProgramFilesFolder] [Manufacturer] \ [ProductName]" as: [ProgramFilesFolder] \ [ProductName] , otherwise the installation path does not allow the user selects.  

  2, click on the "Application Folder", right-click on the right "Primary output from test1 (.." create their shortcuts (shortcuts can be renamed) → drag the shortcut to the "User's Program Menu" and "user desktops "after this installation is complete, it will create the appropriate icon on the desktop and the user's program menu.

  3. Applications folder → Right → Add File to select an icon ico file.

  4, select the shortcut in the Properties window, select the Icon property just add to the mix ico file.

  5, right-click the project name setup1, select "generate", and then to copy the directory generated under setup.exe to install.

   

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/-liuming-/p/11926743.html