cec: added a .NET framework 2.0 version of LibCecSharp: LibCecSharp.Net2.dll
[deb_libcec.git] / project / libCEC.nsi
index 7477718824e1a610d7d20d706ea482046fac1b60..065544a785158677a26fe2be4936dd7c398f7deb 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  
 
@@ -50,12 +50,18 @@ Section "libCEC" SecLibCEC
   File "..\cec-client.exe"
   File "..\ChangeLog"
   File "..\COPYING"
-  File "..\libcec.dll"
+  File "..\*.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"
@@ -128,11 +134,9 @@ Section "Uninstall"
   Delete "$INSTDIR\cec-client.exe"
   Delete "$INSTDIR\ChangeLog"
   Delete "$INSTDIR\COPYING"
-  Delete "$INSTDIR\libcec.dll"
+  Delete "$INSTDIR\*.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"
   Delete "$INSTDIR\driver\dpinst-amd64.exe"