Custom uninstaller for a WIX generated MSI

被刻印的时光 ゝ 提交于 2019-12-02 17:37:12

问题


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 compatibility with SMS or similar products.

What are your thoughts on this method?


回答1:


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.



来源:https://stackoverflow.com/questions/1825317/custom-uninstaller-for-a-wix-generated-msi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!