当前位置: 动力学知识库 > 问答 > 编程问答 >

wix - Suppress custom action during upgrade for already released MSI

问题描述:

I have an already released MSI that has a custom action scheduled to run when UPGRADINGPRODUCTCODE is true. The action I released looks like this:

<Custom Action="DoThing" After="InstallFinalize" >

NOT REMOVE OR UPGRADINGPRODUCTCODE

</Custom>

The problem is I DON'T want it to run when my users upgrade. The action SHOULD have looked like this

<Custom Action="DoThing" After="InstallFinalize" >

NOT Installed

</Custom>

but unfortunately I didn't think this process through before I sent it out the door. So my question is what can I do? Is there any way to suppress this action in my next version's actions?

网友答案:

This is what patches are for. You are using WiX, so you could create a bundle that first installs the patch with the corrected condition then does the upgrade with the new MSI.

分享给朋友:
您可能感兴趣的文章:
随机阅读: