EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

How to generate the Setup file for installing Windows Form App in Visual Studio 2019?

1. Under the same solution, create a new project and select Setup Project

2. Right-click Application Folder → Add → File (Own program bin → Debug → all files)

3. Right-click Application Folder → Add → File, add uninstall program C:\Windows\System32\msiexec.exe

4. Create a shortcut of msiexec.exe, rename it to uninstall, and put the shortcut in the Application Folder

5. Check the Product Code in the Setup Project property and copy it

6. Fill in the Arguments of the uninstall property: /X {content you copied}

7. Right-click Application Folder → Add → project output, and then create a shortcut for the project output

8. Rename the shortcut, add Icon, and drag it to User's Desktop

9. Okay, at this step you are basically done, right-click Setup Project → Generate,

10. Finally, find the installation file in the Debug folder of the project


If you don't have a Setup Project, you need to download it

Microsoft Visual Studio Installer Projects:

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

This thing seems to be abolished by Microsoft deliberately. I remember that there was still this thing when using vs2015.

This article was last edited at 2020-11-05 02:39:00

* *