Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

  1. @echo off
  2. setlocal ENABLEEXTENSIONS
  3. if DEFINED _echo echo on
  4. if DEFINED verbose echo on
  5. set inf=
  6. REM ------------------------------------------------
  7. REM Get command-line options
  8. REM ------------------------------------------------
  9. for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage
  10. if "%1" == "" goto Usage
  11. set mydir=%1
  12. pushd %mydir%
  13. if NOT exist nt5inf.ca_ goto Usage
  14. expand nt5inf.ca_ nt5inf.cat >NUL
  15. if exist layout.inf call :update layout.inf&set inf=1
  16. if exist syssetup.inf call :update syssetup.inf&set inf=1
  17. if "%inf%"=="" goto Usage
  18. echo signing updated nt5inf.cat ...
  19. signtool sign %SIGNTOOL_SIGN% "%mydir%\nt5inf.CAT"
  20. del nt5inf.ca_
  21. goto end
  22. :update
  23. set file=%1
  24. echo updating nt5inf.cat with signature for new %file% ...
  25. updcat nt5inf.cat -a %file%
  26. goto :EOF
  27. :Usage
  28. echo IF you have either LAYOUT.INF or SYSSETUP.INF
  29. echo in your signing directory. Deltacat will not
  30. echo sign these files which must be signed in nt5inf.cat.
  31. echo.
  32. echo Let deltacat run then do the following:
  33. echo 1. Copy nt5inf.ca_ to your signing directory
  34. echo from wherever your are installing, e.g.
  35. echo \\ntbuilds\release\usa\latest.tst\x86\fre.wks,
  36. echo or, e.g. e:\i386.
  37. echo 2. Make sure you have the most recent updcat.exe
  38. echo 3. Run infsign [directory], e.g. infsign c:\bin
  39. echo.
  40. echo When complete, run winnt32 /m:[directory]
  41. popd
  42. :end
  43. @ENDLOCAL