I need to register an HTTP port after installation, but I assume that it can be abstracted to execute any command line command. Here is what I have so far:
<CustomAction Id="ExecPortOpen" Directory="INSTALLFOLDER" Execute="immediate" ExeCommand="cmd.exe "netsh http add urlacl url=http://+:1234/ user=Everyone"" Return="ignore" /> <InstallExecuteSequence> <Custom Action="ExecPortOpen" After="InstallFinalize" /> </InstallExecuteSequence>
It just opens the command line in the middle of the installation and does nothing with it. I tried adding / c (I have no idea what this does) between cmd.exe and the command, but it only opens and closes the command line without executing the command. How to do it? I am using WiX 3.8.
source share