cec-config-gui: added some tooltips
[deb_libcec.git] / support / create-driver-installer.cmd
CommitLineData
8dfe215b
LOK
1@echo off
2
3rem Check for NSIS
4IF 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"
8) ELSE GOTO NONSIS
9
10rem Check for the Windows DDK
11IF NOT EXIST "C:\WinDDK\7600.16385.1" GOTO NODDK
12set DDK="C:\WinDDK\7600.16385.1"
13
14cd ..\project
15
16del /s /f /q ..\build
17mkdir ..\build
18
19echo. Copying driver installer
20copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\build\dpinst-amd64.exe
21copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\build\dpinst-x86.exe
22
66bc83fd
LOK
23:CREATECAT
24IF EXIST "..\support\create-cat.cmd" (
25 echo. Updating the catalogue
26 CALL ..\support\create-cat.cmd
27)
28
8dfe215b
LOK
29:CREATEINSTALLER
30echo. Creating the installer
31%NSIS% /V1 /X"SetCompressor /FINAL lzma" "p8-usbcec-driver.nsi"
32
33IF NOT EXIST "..\build\p8-usbcec-driver-installer.exe" GOTO :ERRORCREATINGINSTALLER
34
35rem Sign the installer if sign-binary.cmd exists
36IF EXIST "..\support\sign-binary.cmd" (
37 echo. Signing the installer binaries
38 CALL ..\support\sign-binary.cmd ..\build\p8-usbcec-driver-installer.exe
39)
40
41echo. The installer can be found here: ..\build\p8-usbcec-driver-installer.exe
42
43GOTO EXIT
44
45:NOSIS
46echo. NSIS could not be found on your system.
47GOTO EXIT
48
49:NODDK
50echo. Windows DDK could not be found on your system
51GOTO EXIT
52
53:ERRORCREATINGINSTALLER
54echo. The installer could not be created.
55
56:EXIT
57del /q /f ..\build\dpinst-amd64.exe
58del /q /f ..\build\dpinst-x86.exe
59cd ..\support