How to use WiX v4 with CMake #7894
-
Currently |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
WiX v3 candle / light was C++ inspired. WiX v4 is dotnet(.exe) inspired. Use the command Also realize that the WiX language (and schema) has changed substantially in v4. So the CPack WiX generator will need to be updated both in the XML it generates and the commands it uses to build the MSI. I imagine this to be substantial work for them and they are a year behind if they intend to do it as WiX v4 preview 1 was released a year ago. |
Beta Was this translation helpful? Give feedback.
-
During a move to WiX v4, I separated the actual binary build and the installer build to avoid using CMake and WiX together. CMake outputs an install tarball, WiX just pulls files from that extracted tarball. This requires a bit more effort in the way of hand-writing XML but for simple use-cases, it's not too bad. |
Beta Was this translation helpful? Give feedback.
WiX v3 candle / light was C++ inspired. WiX v4 is dotnet(.exe) inspired. Use the command
dotnet tool install --global wix
to install it and then type wix. You'll see the commands are different.wix build -h
will probably tell you most of what you are looking for.Also realize that the WiX language (and schema) has changed substantially in v4. So the CPack WiX generator will need to be updated both in the XML it generates and the commands it uses to build the MSI. I imagine this to be substantial work for them and they are a year behind if they intend to do it as WiX v4 preview 1 was released a year ago.