Fixed detection of installed .NET Framework version on pure 32-Bit operating system.
This commit is contained in:
parent
99c5a56a4f
commit
8f9e501574
@ -26,6 +26,8 @@ SubCaption 4 " "
|
||||
Sleep 333
|
||||
!macroend
|
||||
|
||||
!define REG_KEY_DOTNET_FRAMEWORK `'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' 'Release'`
|
||||
|
||||
Section
|
||||
BringToFront # Just to be sure!
|
||||
|
||||
@ -37,10 +39,13 @@ Section
|
||||
${EndIf}
|
||||
|
||||
!insertmacro PrintStatusMessage "Detecting installed .NET Framework version, please wait..."
|
||||
SetRegView 32
|
||||
ClearErrors
|
||||
ReadRegDWORD $0 HKLM 'SOFTWARE\WOW6432Node\Microsoft\NET Framework Setup\NDP\v4\Full' 'Release'
|
||||
${IfNot} ${Errors}
|
||||
ReadRegDWORD $0 HKLM64 ${REG_KEY_DOTNET_FRAMEWORK}
|
||||
${If} ${Errors}
|
||||
${OrIfNot} $0 U> 0
|
||||
ReadRegDWORD $0 HKLM32 ${REG_KEY_DOTNET_FRAMEWORK}
|
||||
${EndIf}
|
||||
${If} $0 U> 0
|
||||
DetailPrint "Installed release: $0"
|
||||
${IfThen} $0 >= 461808 ${|} Goto launch_application ${|}
|
||||
${Else}
|
||||
|
Loading…
Reference in New Issue
Block a user