Installed: Improved VC++ 2012 redistributable check

This commit is contained in:
Birunthan Mohanathas 2013-01-26 13:22:08 +02:00
parent a96151b8f8
commit 874a0e00ce

View File

@ -571,9 +571,15 @@ Section
${If} $InstallPortable <> 1 ${If} $InstallPortable <> 1
; Download and install VC++ 2012 redist if required ; Download and install VC++ 2012 redist if required
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Libraries\Extended\$InstArc" "Bld" ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\$InstArc" "Bld"
ReadRegDWORD $2 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\$InstArc" "Installed"
${If} $0 == ""
; Some VS installs do not appear to have the "VC\Runtimes" node.
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Libraries\Extended\$InstArc" "Bld"
ReadRegDWORD $2 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Libraries\Extended\$InstArc" "Install"
${EndIf}
${VersionCompare} "$0" "51106" $1 ${VersionCompare} "$0" "51106" $1
ReadRegDWORD $2 HKLM "SOFTWARE\Microsoft\VisualStudio\11.0\VC\Libraries\Extended\$InstArc" "Install"
${If} $1 = 2 ${If} $1 = 2
${OrIf} $2 <> 1 ${OrIf} $2 <> 1
${If} ${Silent} ${If} ${Silent}