4 IF EXIST "%ProgramFiles%\NSIS\makensis.exe" (
5 set NSIS="%ProgramFiles%\NSIS\makensis.exe"
6 ) ELSE IF EXIST "%ProgramFiles(x86)%\NSIS\makensis.exe" (
7 set NSIS="%ProgramFiles(x86)%\NSIS\makensis.exe"
10 rem Check for the Windows DDK
11 IF NOT EXIST "C:\WinDDK\7600.16385.1" GOTO NODDK
12 set DDK="C:\WinDDK\7600.16385.1"
19 echo. Copying driver installer
20 copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\build\dpinst-amd64.exe
21 copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\build\dpinst-x86.exe
24 IF EXIST "..\support\create-cat.cmd" (
25 echo. Updating the catalogue
26 CALL ..\support\create-cat.cmd
30 echo. Creating the installer
31 %NSIS% /V1 /X"SetCompressor /FINAL lzma" "p8-usbcec-driver.nsi"
33 IF NOT EXIST "..\build\p8-usbcec-driver-installer.exe" GOTO :ERRORCREATINGINSTALLER
35 rem Sign the installer if sign-binary.cmd exists
36 IF EXIST "..\support\sign-binary.cmd" (
37 echo. Signing the installer binaries
38 CALL ..\support\sign-binary.cmd ..\build\p8-usbcec-driver-installer.exe
41 echo. The installer can be found here: ..\build\p8-usbcec-driver-installer.exe
46 echo. NSIS could not be found on your system.
50 echo. Windows DDK could not be found on your system
53 :ERRORCREATINGINSTALLER
54 echo. The installer could not be created.
57 del /q /f ..\build\dpinst-amd64.exe
58 del /q /f ..\build\dpinst-x86.exe