added: version number to package filename
[deb_libcec.git] / support / create-installer.bat
index 8c37a8f93a8317d4559782fb3bd64441c578c12c..b1f55f96437b1f70eb8d2e8913e77ee2cfc978be 100644 (file)
@@ -7,10 +7,6 @@ IF EXIST "%ProgramFiles%\NSIS\makensis.exe" (
   set NSIS="%ProgramFiles(x86)%\NSIS\makensis.exe"
 ) ELSE GOTO NONSIS
 
-rem Check for the Windows DDK
-IF NOT EXIST "C:\WinDDK\7600.16385.1" GOTO NODDK
-set DDK="C:\WinDDK\7600.16385.1"
-
 rem Check for VC10
 IF "%VS100COMNTOOLS%"=="" (
   set COMPILER10="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe"
@@ -26,6 +22,10 @@ mkdir ..\build
 IF EXIST "..\support\p8-usbcec-driver-installer.exe" (
   copy "..\support\p8-usbcec-driver-installer.exe" "..\build\."
 ) ELSE (
+  rem Check for the Windows DDK
+  IF NOT EXIST "C:\WinDDK\7600.16385.1" GOTO NODDK
+  set DDK="C:\WinDDK\7600.16385.1"
+
   call create-driver-installer.cmd
 )
 
@@ -127,7 +127,9 @@ IF EXIST "..\support\private\sign-binary.cmd" (
   CALL ..\support\private\sign-binary.cmd ..\build\libCEC-installer.exe
 )
 
-echo. The installer can be found here: ..\build\libCEC-installer.exe
+mv ..\build\libCEC-installer.exe ..\build\libCEC-%1%-installer.exe
+
+echo. The installer can be found here: ..\build\libCEC-%1%-installer.exe
 
 GOTO EXIT
 
@@ -155,4 +157,5 @@ del /q /f ..\build\*.lib
 del /q /f ..\build\*.exp
 del /s /f /q ..\build\x64
 rmdir ..\build\x64
-cd ..\support
\ No newline at end of file
+cd ..\support
+