forked from desowin/usbpcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store signing options in config.bat.
Call this file from all .bat files that sign files. Fix Windows 8 x64 driver signing.
- Loading branch information
Showing
6 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set _USBPCAP_SIGNTOOL="C:\WinDDK\7600.16385.1\bin\amd64\SignTool.exe" | ||
|
||
::In order to sign the binary with real certificate replace the | ||
::certificates\USBPcapTestCert.pfx with path to your certificate | ||
set _USBPCAP_SIGN_OPTS=sign /f %~dp0certificates\USBPcapTestCert.pfx /t https://timestamp.verisign.com/scripts/timestamp.dll | ||
|
||
::_USBPCAP_VERSION specifies version of the installer. | ||
::To update driver version edit USBPcapDriver\USBPcap.rc and | ||
::USBPcapDriver\SOURCES | ||
set _USBPCAP_VERSION="1.0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
|
||
CALL ..\config.bat | ||
|
||
set nsis_compiler= | ||
|
||
if defined NSIS_HOME ( | ||
if exist "%NSIS_HOME%\makensis.exe" ( | ||
set "nsis_compiler=%NSIS_HOME%" | ||
) | ||
) | ||
|
||
if %PROCESSOR_ARCHITECTURE%==x86 ( | ||
Set RegQry=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS | ||
) else ( | ||
Set RegQry=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS | ||
) | ||
|
||
if not defined nsis_compiler ( | ||
for /F "tokens=2*" %%a in ('reg query %RegQry% /v InstallLocation ^|findstr InstallLocation') do set nsis_compiler=%%b | ||
) | ||
|
||
if not defined nsis_compiler ( | ||
for %%X in (makensis.exe) do (set nsis_compiler=%%~dp$PATH:X) | ||
) | ||
|
||
if defined nsis_compiler ( | ||
"%nsis_compiler%\makensis.exe" %~dp0\USBPcap.nsi | ||
pause | ||
) else ( | ||
echo "Error, build system cannot find NSIS! Please reinstall it, add makensis.exe to your PATH, or defined the NSIS_HOME environment variable." | ||
) |