Using WiX to create an IIS virtual directory

后端 未结 5 553
半阙折子戏
半阙折子戏 2020-12-08 04:58

I\'d ask this on the WiX mailing list, but it seems to be down.

I have an application which is both a desktop app and a web app which runs locally. I\'ve created a c

5条回答
  •  渐次进展
    2020-12-08 05:56

    The above snippets use the iis:WebAddress in an improper way. You need to add IP="*" if you want this to work with all websites that match the name and the port. The above example fails during the install if there is an ip address assigned to the website in IIS (wix CA will not find it in general)

    Rant: wix is terrible for many reasons, in my opinion and this is a good example. If the attribute is missing it will only work for websites with the default IP - how unintuitive is this. Wix should at least emit a waring for a missing IP element. Furthermore the default IP (localhost) is represented as * in IIS metabase, at the same time in the wix file * means all websites (not only *). So it is really confusing and not intuitive at all.

提交回复
热议问题