Merge pull request #16 from finson/65894f58514a9ab61ae20e45cfde06c9d45600e4
[deb_libcec.git] / project / libCEC.nsi
index eaf10932e36d54215ddbf196183116a5d6561b98..36cd65bb6a17eb21d4c6764280e372c38fbc9b21 100644 (file)
@@ -16,7 +16,7 @@ InstallDirRegKey HKCU "Software\libCEC" ""
 RequestExecutionLevel admin
 Var StartMenuFolder
 
-!define MUI_FINISHPAGE_LINK "Please visit http://www.pulse-eight.com/ for more information."
+!define MUI_FINISHPAGE_LINK "Visit http://www.pulse-eight.com/ for more information."
 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.pulse-eight.com/"
 !define MUI_ABORTWARNING  
 
@@ -52,9 +52,17 @@ Section "libCEC" SecLibCEC
   File "..\COPYING"
   File "..\libcec.dll"
   File "..\libcec.lib"
+  File "Release\LibCecSharp.dll"
   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"
@@ -130,6 +138,7 @@ Section "Uninstall"
   Delete "$INSTDIR\libcec.dll"
   Delete "$INSTDIR\libcec.lib"
   Delete "$INSTDIR\libcec.pdb"
+  Delete "$INSTDIR\LibCecSharp.dll"
   Delete "$INSTDIR\pthreadVC2.dll"
   Delete "$INSTDIR\README"
   Delete "$INSTDIR\driver\OEM001.inf"