cec: copy libcec.dll to the XBMC installation dir when XBMC is found
authorBuildserver <p8packaging@pulse-eight.com>
Wed, 21 Dec 2011 10:16:31 +0000 (11:16 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 21 Dec 2011 10:23:46 +0000 (11:23 +0100)
project/libCEC.nsi

index 591cc1da9ab7a6e609a08c67002aa212fefa454e..36cd65bb6a17eb21d4c6764280e372c38fbc9b21 100644 (file)
@@ -56,6 +56,13 @@ Section "libCEC" SecLibCEC
   File "..\pthreadVC2.dll"
   File "..\README"
 
+  ; Copy to XBMC\system
+  ReadRegStr $1 HKCU "Software\XBMC" ""
+  ${If} $1 != ""
+    SetOutPath "$1\system"
+       File "..\libcec.dll"
+  ${EndIf}
+
   SetOutPath "$INSTDIR\driver"
   File "..\dpinst-amd64.exe"
   File "..\dpinst-x86.exe"