开发者

how to remove the Patch from console

I am applying Patch to my programm with command line:

msiexec /开发者_开发技巧p Patch.msp -l*v log.txt

But how to remove the Patch from console? Not to remove the product at all.Only Patch. Now I am using ARP Panel for this cause. But i can't get logs.


Starting with Windows Installer 3.0, you can uninstall patches. There are two methods you can use on the command line:

  • Using MSIPATCHREMOVE on a command line
msiexec /i {GUID-OF-PRODUCT} MSIPATCHREMOVE={GUID_OF_PATCH} /qb
  • Using the standard command line options
Msiexec /package {GUID-OF-PRODUCT} /uninstall {GUID_OF_PATCH} /passive

For more information, read Uninstalling Patches article on MSDN.


No all patches can be removed individually. You must author a special kind of patch called "Uninstallable Patch" in order to remove it.

You can read more here on how to remove patches: http://msdn.microsoft.com/en-us/library/aa371212(VS.85).aspx


The other answers need product's GUID, it's not easy to get it. Here's another way:

Msiexec /i {installpath_of_product} MSIPATCHREMOVE={installpath_of_patch} /qb
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜