我的卸载托管c++

建立窗体项目。

在load事件中加入代码:

 String ^sysroot = System::Environment::SystemDirectory;
     System::Diagnostics::Process::Start(sysroot + "\\msiexec.exe", "/x {41F5C4F1-F1AF-463B-8D9E-360B49887B23} /qr");
     this->Close();

原文地址:https://www.cnblogs.com/jinyuttt/p/1818233.html