How to execute Wix custom action after installation?

后端 未结 3 1210
余生分开走
余生分开走 2021-02-19 20:43

I am using Wix3 to install WCF service to IIS.

How can I use my custom action (c#) function after installation completed? i.e. I need to open installed web.config file a

3条回答
  •  悲哀的现实
    2021-02-19 20:44

    Why would you:

    1) Need a custom action? 2) Do it after the install instead of during the install?

    WiX has a built-in extension for handling what you are trying to do:

    XmlFile Element (Util Extension)

    It will update your XML after the file has been installed and handle rollback scenarios as well.

    What you will have to write a CA for though is reading the XML value back into a property ti handle repair and upgrade situations. Read:

    The WiX toolset's "Remember Property" pattern.

提交回复
热议问题