VC 8.0 Redistributables: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Formatting change) |
m (Vc8redist moved to VC 8.0 Redistributables: Changing page title to something more reasonable) |
Revision as of 16:07, 28 February 2007
This function detects if VC++ 8.0 redistributables are installed on the machine
;------------------------------- ; Test if Visual Studio Redistributables 2005+ SP1 installed ; Returns -1 if there is no VC redistributables intstalled Function CheckVCRedist Push $R0 ClearErrors ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7299052b-02a4-4627-81f2-1818da5d550d}" "Version" ; if VS 2005+ redist SP1 not installed, install it IfErrors 0 VSRedistInstalled StrCpy $R0 "-1" VSRedistInstalled: Exch $R0 FunctionEnd