Question

Can anyone help me to get the custom script (i.e. using Target) sample to uninstall the msi instance which is already installed on a server using MSBUILD.

A sample code example will be more helpful.

Thanks & Regards, Santosh Kumar Patro

Was it helpful?

Solution

The below mentioned MSBUILD script helped me to uninstall the 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>

Thanks & Regards, Santosh Kumar Patro

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top