Source code of Windows XP (NT5)
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.

40 lines
1.4 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 exist createdbgem.err del /f /q createdbgem.err
  7. if /i "%_BuildArch%" == "x86" set SUBDIR=i386
  8. if /i "%_BuildArch%" == "ia64" set SUBDIR=ia64
  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 control 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. if /i "%1" == "dbgemx.msm" (
  19. if exist %CD%\%SUBDIR%\dbgemx.msm del %CD%\%SUBDIR%\dbgemx.msm
  20. %_NTDRIVE%%_NTROOT%\tools\wiimport.vbs %CD%\%SUBDIR%\dbgemx.msm /c %CD%\dbgemx_idts *.idt >>createdbgem.err
  21. )
  22. REM if tables were edited in dbgx.msi, use this script below to export them back
  23. REM to the IDT's for checking in
  24. if /i "%1" == "export" (
  25. for /f %%a in ('dir /s /b %CD%\dbgx_idts') do (
  26. sd edit %%a
  27. )
  28. %_NTDRIVE%%_NTROOT%\tools\wiexport.vbs %CD%\dbgx.msi %CD%\dbgx_idts * >>createdbg.err
  29. )