1
0
Fork 0

Fixed detection of installed .NET Framework version on pure 32-Bit operating system.

This commit is contained in:
LoRd_MuldeR 2022-11-13 20:34:11 +01:00
parent 99c5a56a4f
commit 8f9e501574
Signed by: mulder
GPG Key ID: 2B5913365F57E03F
1 changed files with 8 additions and 3 deletions

View File

@ -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}