aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/add_cert.bat
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-07 18:48:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-07 18:48:43 +0300
commit9245d6d8d6989704c1f22a54303877ac37c81e91 (patch)
tree83543173a8af5fa4e10aa7e00695cc7507a79b12 /add_cert.bat
parentREADME update (diff)
downloadwindows7-drivers-9245d6d8d6989704c1f22a54303877ac37c81e91.tar.gz
windows7-drivers-9245d6d8d6989704c1f22a54303877ac37c81e91.zip
sign.bat: fail gracefully if the DDK's not present
Diffstat (limited to 'add_cert.bat')
-rw-r--r--add_cert.bat1
1 files changed, 1 insertions, 0 deletions
diff --git a/add_cert.bat b/add_cert.bat
index 3673dac..ed42e52 100644
--- a/add_cert.bat
+++ b/add_cert.bat
@@ -14,6 +14,7 @@ echo Certificate name: "%cert_name%"
echo ========================== END CERT INFO ==========================
echo.
echo ======================= ADDING CERTIFICATE ========================
+call check_ddk.bat || goto :add_cert_failure
echo makecert.exe -$ individual -r -pe -ss "%cert_store%" -n CN="%cert_name%" "%cert_name%.cer"
makecert.exe -$ individual -r -pe -ss "%cert_store%" -n CN="%cert_name%" "%cert_name%.cer" >nul || goto :add_cert_failure
echo certmgr.exe /add "%cert_name%.cer" /s /r localMachine root