开发者

Custom uninstaller for a WIX generated MSI

开发者 https://www.devze.com 2022-12-13 10:00 出处:网络
I have an MSI that is being generated from WIX scripts. My question is similar to this question. I want to create a custom uninstaller instead of using the default MSI uninstaller.

I have an MSI that is being generated from WIX scripts.

My question is similar to this question.

I want to create a custom uninstaller instead of using the default MSI uninstaller.

I am thinking of adding a custom action that executes after PublishProduct or before InstallFinalize that just goes and modifies the registry entry that specifies the uninstall string to use.

I am not worried about c开发者_JAVA百科ompatibility with SMS or similar products.

What are your thoughts on this method?


It's not that simple. For whatever reason, the ARP doesn't respect the UninstallString on MSI packages. So to change it you would have to set ARPSYSTEMCOMPONENT and validate all the various upgrade and removal paths you may ever wish to support. Heath Stewart has a series of blog posts related to this which help enumerate the possible scenarios and common problems with them.

I believe this series was written in the MSI 3.x era, so it likely does not address any new concerns on Windows Vista or later, and could not take advantage of the MSI 4.5 patch-uninstall custom action flag.

0

精彩评论

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