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
|
Sleep 333
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
|
!define REG_KEY_DOTNET_FRAMEWORK `'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' 'Release'`
|
||||||
|
|
||||||
Section
|
Section
|
||||||
BringToFront # Just to be sure!
|
BringToFront # Just to be sure!
|
||||||
|
|
||||||
@ -37,10 +39,13 @@ Section
|
|||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
!insertmacro PrintStatusMessage "Detecting installed .NET Framework version, please wait..."
|
!insertmacro PrintStatusMessage "Detecting installed .NET Framework version, please wait..."
|
||||||
SetRegView 32
|
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ReadRegDWORD $0 HKLM 'SOFTWARE\WOW6432Node\Microsoft\NET Framework Setup\NDP\v4\Full' 'Release'
|
ReadRegDWORD $0 HKLM64 ${REG_KEY_DOTNET_FRAMEWORK}
|
||||||
${IfNot} ${Errors}
|
${If} ${Errors}
|
||||||
|
${OrIfNot} $0 U> 0
|
||||||
|
ReadRegDWORD $0 HKLM32 ${REG_KEY_DOTNET_FRAMEWORK}
|
||||||
|
${EndIf}
|
||||||
|
${If} $0 U> 0
|
||||||
DetailPrint "Installed release: $0"
|
DetailPrint "Installed release: $0"
|
||||||
${IfThen} $0 >= 461808 ${|} Goto launch_application ${|}
|
${IfThen} $0 >= 461808 ${|} Goto launch_application ${|}
|
||||||
${Else}
|
${Else}
|
||||||
|
Loading…
Reference in New Issue
Block a user