Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Write WIX current version in registry #4073
When installing WIX it writes several registry keys under HKLM\Software\Microsoft\Windows Installer XML\3.7 . The previous version wrote its data under the key 3.5.
There is no way to detect automatically from registry keys which version of WIX is installed and where it is installed because the primary key always changes (3.5 -> 3.6 -> 3.7). Such detection would facilitate writing various msbuild scripts.
It would be convenient if WIX installer would write the property "CurrentVersion" under the key "Windows Installer XML", pointing to the subkey of the current installed version of WIX.
The concept here is fine, to detect which one version is installed among non-SxS releases and among other SxS releases. Visual Studio does the same thing in a "SxS" key. However, the best time to do it is from the beginning. As it wasn't, anybody needing to detect "current" releases of WiX has to do so by looking at 3.0, 3.5, 3.6, and 3.7. We should take it in v3.8 so we don't explode the number of manual checks and make sure it merges so it's in the .0 release of the v4.x line.