Action Heinz
Action Heinz

Reputation: 744

Changing behaviour of .NET 3.5 bootstrapper generated by WIX

I've got following problem:
I have built an installer with WIX. This installer contains a bootstrapper for .NET framework 3.5. First time installing the bootstrapper works like a charm. .NET framework 3.5 is installed. But for example after uninstalling and reinstalling the bootstrapper doesn't recognize that .NET framework 3.5 is already installed.

I found out following reason:
According to the bootstrapper log it checks this registry value:

Reading value 'Install' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP \v3.5\1033' Unable to read registry value

It searches for a localized version of the .NET framework (1033=German)

In my case I only have the English version of the framework installed (1031=English)

So I've only got 1031 as a subkey.

So my question is if it is possible to change the check from

'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5\1033'
to
'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5\'

There is also a value named 'installed' and for the bootstrapper it doesn't matter which language for the framework is installed.

Thanks in advance for your help

Upvotes: 0

Views: 250

Answers (1)

caveman_dick
caveman_dick

Reputation: 6647

If you are using burn as a boot-strapper you should use the DetectCondition attribute on the ExePackage element which will not run the .net framework installer if it detects is already installed.

Upvotes: 0

Related Questions