简体   繁体   中英

How to Create an MSI Installer in Visual Studio?

I've got a C# project in Visual Studio code, and I've installed the Microsoft Visual Studio Installer Projects extension. But, when I right-click on the project and click Build (from the Release), the.MSI file is not created. I'm not sure why. I think it might have something to do with the configuration manager saying that MSI Setup Incompatible. The strange thing is, I was able to get the MSI file created on a different computer, but when I started doing development on this one, it won't get created.

Do you have any ideas how I can get the MSI file created? Thanks in advance! 在此处输入图像描述

I got it to create the MSI file. Here's what I did:

  1. Downloaded a fresh copy of the project from Gitlab.
  2. Opened the Configuration Manager and checkmarked the Build box in the Setup entry. 在此处输入图像描述
  3. Selected the x86 platform from the drop-down and Release from the build-type drop-down.
  4. Right-clicked on the Setup folder and chose Rebuild Solution (before I was right-clicking on the Project and choosing Rebuild solution). 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM