clempaul.me.uk » BlogGallerySoftware

Checking the .NET Framework 3.0 is installed in WiX

To prevent installation unless the .NET Framework 3.0 is installed, add the following inside the product tag in your WiX source file.

<Property Id='FRAMEWORK30'>
<RegistrySearch Id='Framework30Registry' Type='raw' Root='HKLM'
Key='Software\Microsoft\NET Framework Setup\NDP\v3.0\Setup' Name='Version' />
</Property>

<Condition Message='.NET Framework 3.0 is not present on the computer.'>
FRAMEWORK30 >= "3"
</Condition>