Permalink
Browse files

Fix installer not detecting some installs of .NET Framework 3.0.

  • Loading branch information...
1 parent e6f1c94 commit 323b3fb6de1821c3f0b25f9598fd0db08c7c7212 @rmcardle rmcardle committed Feb 17, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 Installer/DotNetVer.nsh
View
@@ -150,6 +150,10 @@ Var /GLOBAL __DONTNET_FOUNDVER
; Check for .NET 1.0 to 3.5
ReadRegDWORD $3 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\$1" "Install"
ReadRegDWORD $4 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\$1" "SP"
+ IntCmp $3 1 dotnetcheck.skipalt
+ ; Alternate check for versions that don't set the Install key
+ ReadRegDWORD $3 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\$1\Setup" "InstallSuccess"
+ dotnetcheck.skipalt:
; This is a sanity check that works on .NET 1.0 to 3.5
; if it fails check for dotnet 4
IntCmp $3 0 dotnetcheck.40

0 comments on commit 323b3fb

Please sign in to comment.