Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2008-12-15 00:25:52 +0300
committerOctaneSnail <os@v12pwr.com>2008-12-15 00:39:45 +0300
commit9302493b5e5e658b1a5bb17cd76d449c25b9b823 (patch)
tree797008671bbebe157bf73113a00ba86675736163 /RFS.nsi
parent9d85262f5bdb1336ac76d9a9b361bbc7bb4d131e (diff)
Check that the VC2008 redist is available before installing.
Diffstat (limited to 'RFS.nsi')
-rw-r--r--RFS.nsi8
1 files changed, 6 insertions, 2 deletions
diff --git a/RFS.nsi b/RFS.nsi
index df3c2c8..db41174 100644
--- a/RFS.nsi
+++ b/RFS.nsi
@@ -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"