How to add a WiX custom action that happens only on uninstall (via MSI)?

后端 未结 6 1364
一生所求
一生所求 2020-11-22 06:20

I would like to modify an MSI installer (created through WiX) to delete an entire directory on uninstall.

I understand the RemoveFile and RemoveFo

6条回答
  •  日久生厌
    2020-11-22 06:53

    I used Custom Action separately coded in C++ DLL and used the DLL to call appropriate function on Uninstalling using this syntax :

    
    

    Using the above code block, I was able to run any function defined in C++ DLL on uninstall. FYI, my uninstall function had code regarding Clearing current user data and registry entries.

提交回复
热议问题