jero2rome
jero2rome

Reputation: 1568

Detect .NET 4.5.2 in WiX as a Burn prerequisite

Starting from .NET 4.5.1, it seems we have to change the .NET detect condition for the Burn bootstrapper.

 <util:RegistrySearch Root="HKLM"
                     Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"
                     Value="Release"
                     Variable="Netfx452FullVersion" />
 <util:RegistrySearch Root="HKLM"
                     Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"
                     Value="Release"
                     Variable="Netfx452x64FullVersion"
                     Win64="yes" />

But the Release Registry value is a DWORD (379893 for .NET 4.5.2). Then how do we do integer comparison for DWORD? This will not work if I compare value of release with integer. Since value of release is a string.

Upvotes: 1

Views: 2260

Answers (1)

Sean Hall
Sean Hall

Reputation: 7878

WiX 3.9 has support for .NET 4.5.2. You can see the wxs file on GitHub.

Burn is smarter than MSI. It sees that the registry value is a DWORD and sets Release as a numeric variable.

Upvotes: 3

Related Questions