X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=project%2FlibCEC.nsi;h=a539dc7bc4898b1884b3b3ad8b2362875aa906ad;hb=4f5046734389cc554448da5cee93970f3091348b;hp=61cff60b28c9fbd5aaa0621b75d0ac845a6e8b1d;hpb=f017f3c49b9136fbffe49fa3eaf372c51617140d;p=deb_libcec.git diff --git a/project/libCEC.nsi b/project/libCEC.nsi index 61cff60..a539dc7 100644 --- a/project/libCEC.nsi +++ b/project/libCEC.nsi @@ -1,5 +1,5 @@ ;libCEC installer -;Copyright (C) 2012 Pulse-Eight Ltd. +;Copyright (C) 2011-2013 Pulse-Eight Ltd. ;http://www.pulse-eight.com/ !include "MUI2.nsh" @@ -7,7 +7,7 @@ !include "LogicLib.nsh" !include "x64.nsh" -Name "Pulse-Eight libCEC version 2.0.0" +Name "Pulse-Eight libCEC" OutFile "..\build\libCEC-installer.exe" XPStyle on @@ -18,8 +18,8 @@ Var StartMenuFolder Var VSRedistSetupError Var VSRedistInstalled -!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_FINISHPAGE_LINK "Visit http://libcec.pulse-eight.com/ for more information." +!define MUI_FINISHPAGE_LINK_LOCATION "http://libcec.pulse-eight.com/" !define MUI_ABORTWARNING !insertmacro MUI_PAGE_WELCOME @@ -42,11 +42,11 @@ Var VSRedistInstalled !insertmacro MUI_LANGUAGE "English" -InstType "USB-CEC driver & libCEC" -InstType "USB-CEC driver only" +InstType "USB-CEC Driver & libCEC" +InstType "USB-CEC Driver Only" InstType "Full installation" -Section "USB-CEC driver" SecDriver +Section "USB-CEC Driver" SecDriver SetShellVarContext current SectionIn RO SectionIn 1 2 3 @@ -55,7 +55,7 @@ Section "USB-CEC driver" SecDriver ReadRegStr $1 HKCU "Software\libCEC" "" ${If} $1 != "" MessageBox MB_OK \ - "A previous libCEC and USB-CEC driver was found. This update requires the old version to be uninstalled. Press OK to uninstall the old version." + "A previous libCEC and USB-CEC Driver was found. This update requires the old version to be uninstalled. Press OK to uninstall the old version." ExecWait '"$1\Uninstall.exe" /S _?=$1' Delete "$1\Uninstall.exe" RMDir "$1" @@ -145,7 +145,7 @@ Section "libCEC" SecLibCec File /r /x *.so "..\include\cec*.*" SectionEnd -Section "CEC debug client" SecCecClient +Section "CEC Debug Client" SecCecClient SetShellVarContext current SectionIn 3 @@ -153,15 +153,15 @@ Section "CEC debug client" SecCecClient SetOutPath "$INSTDIR" File /x p8-usbcec-driver-installer.exe /x cec-tray.exe "..\build\*.exe" SetOutPath "$INSTDIR\x64" - File /nonfatal /x cec-tray.exe "..\build\x64\*.exe" + File /nonfatal "..\build\x64\*.exe" !insertmacro MUI_STARTMENU_WRITE_BEGIN Application SetOutPath "$INSTDIR" CreateDirectory "$SMPROGRAMS\$StartMenuFolder" ${If} ${RunningX64} - CreateShortCut "$SMPROGRAMS\$StartMenuFolder\CEC Test client (x64).lnk" "$INSTDIR\x64\cec-client.x64.exe" \ - "" "$INSTDIR\cec-client.x64.exe" 0 SW_SHOWNORMAL \ + CreateShortCut "$SMPROGRAMS\$StartMenuFolder\CEC Test client (x64).lnk" "$INSTDIR\x64\cec-client.exe" \ + "" "$INSTDIR\x64\cec-client.exe" 0 SW_SHOWNORMAL \ "" "Start the CEC Test client (x64)." ${Else} CreateShortCut "$SMPROGRAMS\$StartMenuFolder\CEC Test client.lnk" "$INSTDIR\cec-client.exe" \ @@ -172,10 +172,29 @@ Section "CEC debug client" SecCecClient SectionEnd -Section "libCEC Tray" SecCecConfig +Section "libCEC Tray Application" SecCecTray SetShellVarContext current SectionIn 1 3 + ; Uninstall previous beta builds of the tray application + ReadRegStr $1 HKLM "Software\Pulse-Eight\libCECTray" "" + ${If} $1 != "" + MessageBox MB_OK \ + "A previous beta build of the libCEC Tray Application was found. Press OK to uninstall the old version. Do not uninstall the driver when asked to. Thank you for participating in the beta test." + ExecWait '"$1\Uninstall.exe" /S _?=$1' + Delete "$1\Uninstall.exe" + ${EndIf} + + ; Replace cec-config-gui.exe + Delete "$INSTDIR\cec-config-gui.exe" + ${If} ${RunningX64} + Delete "$INSTDIR\x64\cec-config-gui.exe" + ${EndIf} + Delete "$SMPROGRAMS\$StartMenuFolder\CEC Adapter Configuration.lnk" + ${If} ${RunningX64} + Delete "$SMPROGRAMS\$StartMenuFolder\CEC Adapter Configuration (x64).lnk" + ${EndIf} + ; Copy to the installation directory SetOutPath "$INSTDIR" File "..\build\cec-tray.exe" @@ -316,7 +335,7 @@ Section "Uninstall" Delete "$SMPROGRAMS\$StartMenuFolder\Visit Pulse-Eight.url" RMDir "$SMPROGRAMS\$StartMenuFolder" - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pulse-Eight USB-CEC Adapter sofware" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pulse-Eight USB-CEC Adapter software" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pulse-Eight USB-CEC Adapter driver" DeleteRegKey /ifempty HKLM "Software\Pulse-Eight\USB-CEC Adapter software" DeleteRegKey /ifempty HKLM "Software\Pulse-Eight"