Original address:78518097
In the solution to package the project Right → add → new project
After the following choices appear
If no visual Studio Installer instructions are installed, the package plugin
Install the Packaging plugin: Microsoft Visual Studio Installer Projects
Tools, expand and Update-online, search for Microsoft Visual Studio Installer Projects
Download and install, the download process is very slow, try a few more times.
After installation, restart vs2017
Go back to our new project, choose a different project type--Visual Studio Installer---and Setup project--Enter the item name--OK
In the interface that appears, right-click Application folder→add→ project Output
Select Main Output Click OK
Right-click "main output from your project name" to select Create Shortcut to ... Generates a shortcut.
Modify the name of the shortcut and drag it into User's Desktop
Right-click Setup Project, select Build
After the build succeeds, open the folder where you can see the generated installation files
An EXE, an MSI.
MSI is the focus and can be installed directly in Windows.
EXE is required to call the MSI file.
VS2017 Packaging C # Desktop Apps