#Does anyone has a tutorial, or an example of the WIX installer?

3 messages · Page 1 of 1 (latest)

hollow epoch
#

basically I would like the installer to add to the computer some lines on the hosts file, and add a certifiate as a trusted authority. Any good link where I can learn how to do that on my wix file? (I am really confused on how that works, and the resources on the subject are very limited)

thick basalt
#

your question really sumarizes why we introduced NSIS and will be changing to it as the default installer. Even though WiX is like the default for .msi bundles there are like no (good) resources out there. To be fair, same for NSIS but it feels much easier to use imo.

#

That said, both your use-cases sound solvable via powershell (which we btw also use to download webview2 in the installer). So for the certificate something like this: https://stackoverflow.com/a/13486757 and for the hosts file the Add-Content powershell api may work just fine.