WPF application packaging process

1, the installation of plug-in templates Microsoft Visual Studio Installer Projects

https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects

After installing "Visual Studio Installer" Template option will appear in the menu bar

 

 

2, create visual studio install Project

3, where the project is added to exe] [main output, the dll do except set.

 

 

 

 Select dll, except settings in the properties window do

 

 

4, where the project is added exe [local copy of item]

Note: If the project has a reference to the item, or third-party packages, require this step.

 

 

4, add the config files and other content (other than content file exe project must be added manually)

For example: Nlog.config

5, add a menu and desktop shortcuts

Right [main] output, choose Create Shortcut.

Select Modify shortcut icon, and then drag the following places.

 

6, modify the installation path

Select the installation package engineering, F4 to enter the property to (pay special attention to right can not select Properties). ProductName will appear in the installation path, the best setting is English.

 

 8, add the uninstall program

Add C: \ Windows \ System32 \ msiexec.exe file to the file system, and create a shortcut.

Modify the shortcut for the parameters Arguments: / x productcode

 

 9, add installation package dependencies

Right-engineering the installation package, select Properties.

 

 Prerequisites .... Select the item, select and download .net version-dependent method.

 

 10, the end of the set, the compiler may generate an installation package.

Click Generate the setup.exe or msi file into the installation. (Obliterates portions of ProdcutName)

 

Guess you like

Origin www.cnblogs.com/lixiaobin/p/wpfinstaller.html