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.

35 lines
1.2 KiB

  1. @echo off
  2. if defined _echo echo on
  3. if defined verbose echo on
  4. setlocal ENABLEEXTENSIONS
  5. if exist createdbg.err del /f /q createdbg.err
  6. if /i "%_BuildArch%" == "x86" set SUBDIR=i386
  7. if /i "%_BuildArch%" == "ia64" set SUBDIR=ia64
  8. if /i "%_BuildArch%" == "amd64" set SUBDIR=amd64
  9. if not exist %CD%\%SUBDIR% md %CD%\%SUBDIR%
  10. for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage
  11. if /i "%1" == "dbgx.msi" (
  12. if exist %CD%\%SUBDIR%\dbgx.msi del %CD%\%SUBDIR%\dbgx.msi
  13. %_NTDRIVE%%_NTROOT%\tools\wiimport.vbs %CD%\%SUBDIR%\dbgx.msi /c %CD%\dbgx_idts *.idt >>createdbg.err
  14. for %%b in (complocator component createfolder directory featurecomponents launchcondition property registry removefile shortcut upgrade _summaryinformation ) do (
  15. %_NTDRIVE%%_NTROOT%\tools\wiimport.vbs %CD%\%SUBDIR%\dbgx.msi %CD%\dbgx_idts\%SUBDIR% %%b.idt >> createdbg.err
  16. )
  17. )
  18. REM if tables were edited in dbgx.msi, use this script below to export them back
  19. REM to the IDT's for checking in
  20. if /i "%1" == "export" (
  21. for /f %%a in ('dir /s /b %CD%\dbgx_idts') do (
  22. sd edit %%a
  23. )
  24. %_NTDRIVE%%_NTROOT%\tools\wiexport.vbs %CD%\dbgx.msi %CD%\dbgx_idts * >>createdbg.err
  25. )