1.建一个控制台应用程序Uninstall;

2.在应用程序的mian方法中添加

static void Main(string[] args)
        {
            System.Diagnostics.Process.Start("msiexec", "/X{110CC34D-8EB3-4135-875A-53DD46E7A17B}");
        }

其中的 {110CC34D-8EB3-4135-875A-53DD46E7A17B}是打包项目的ProductCode

3.将Uninstall.exe添加到打包项目中即可

 

相关文章:

  • 2021-12-06
  • 2021-11-15
  • 2021-10-01
  • 2021-09-18
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-10-14
  • 2021-12-11
  • 2022-12-23
  • 2021-12-06
  • 2021-09-13
相关资源
相似解决方案