Executing Custom Actions immediately in WIX

£可爱£侵袭症+ 提交于 2019-12-06 01:36:52

Add something like:

<Custom Action="MyCustomAction" Before="FindRelatedProducts">1</Custom>
  • Instead of FindRelatedProducts you may need to place other standard action. You can simply open your current msi in Orca to see InstallExecuteSequence.
  • Instead of "1" condition you may need to place something another.

I use something like this...

<InstallExecuteSequence>
        <Custom Action="CA_DoSomething" After="FindRelatedProducts">
            <![CDATA[1]]>
        </Custom>    
</InstallExecuteSequence>
<InstallUISequence>
        <Custom Action="CA_DoSomething" After="FindRelatedProducts">
            <![CDATA[1]]>
        </Custom>
</InstallUISequence>

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