Asp.net mvc 2 如何使用MSBUILD删除卸载msi

Asp.net mvc 2 如何使用MSBUILD删除卸载msi,asp.net-mvc-2,msbuild-4.0,Asp.net Mvc 2,Msbuild 4.0,任何人都可以帮助我获取自定义脚本(即使用目标)示例以卸载已使用MSBUILD安装在服务器上的msi实例 一个示例代码示例将更有帮助 谢谢和问候, Santosh Kumar Patro下面提到的MSBUILD脚本帮助我卸载了msi: <Target Name="UnInstallMSI"> <Message Text="UnInstallation of MSI Started..." Importance="high"></Message>

任何人都可以帮助我获取自定义脚本(即使用目标)示例以卸载已使用MSBUILD安装在服务器上的msi实例

一个示例代码示例将更有帮助

谢谢和问候,
Santosh Kumar Patro

下面提到的MSBUILD脚本帮助我卸载了msi:

<Target Name="UnInstallMSI">
    <Message  Text="UnInstallation of MSI Started..." Importance="high"></Message>
    <Exec Command='msiexec.exe /x &quot;$(MSILocation)&quot; /qn /l*vx &quot;$(LogFile)&quot;' ContinueOnError="false" />
    <Message  Text="UnInstallation of MSI Completed Successfully..." Importance="high"></Message>
  </Target>

谢谢和问候, 桑托什·库马尔·帕特罗