diff options
author | OctaneSnail <os@v12pwr.com> | 2008-12-15 00:25:52 +0300 |
---|---|---|
committer | OctaneSnail <os@v12pwr.com> | 2008-12-15 00:39:45 +0300 |
commit | 9302493b5e5e658b1a5bb17cd76d449c25b9b823 (patch) | |
tree | 797008671bbebe157bf73113a00ba86675736163 /RFS.nsi | |
parent | 9d85262f5bdb1336ac76d9a9b361bbc7bb4d131e (diff) |
Check that the VC2008 redist is available before installing.
Diffstat (limited to 'RFS.nsi')
-rw-r--r-- | RFS.nsi | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -39,8 +39,12 @@ InstallDirRegKey HKLM ${REGKEY} "InstallLocation" !insertmacro MUI_LANGUAGE "English" Section "Install" -# TODO: Verify that the VC2008 redist is installed by checking DWORD key -# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033\Install +checkInstalled: + ReadRegDWORD $0 HKLM "Software\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033" "Install" + IntCmp $0 1 redistInstalled + MessageBox MB_ABORTRETRYIGNORE "The Microsoft Visual C++ 2008 Redistributable Package is not installed.$\nWithout the necessary runtime DLLs the filter will not work.$\n$\nFind it at http://www.microsoft.com/downloads/ and try again." IDIGNORE redistInstalled IDRETRY checkInstalled + Quit +redistInstalled: SetOutPath "$INSTDIR" !define LIBRARY_IGNORE_VERSION !insertmacro InstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED "Release\RARFileSource.ax" "$INSTDIR\RARFileSource.ax" "$INSTDIR" |