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
35 lines
1.2 KiB
@echo off
|
|
if defined _echo echo on
|
|
if defined verbose echo on
|
|
setlocal ENABLEEXTENSIONS
|
|
|
|
|
|
if exist createdbg.err del /f /q createdbg.err
|
|
|
|
if /i "%_BuildArch%" == "x86" set SUBDIR=i386
|
|
if /i "%_BuildArch%" == "ia64" set SUBDIR=ia64
|
|
if /i "%_BuildArch%" == "amd64" set SUBDIR=amd64
|
|
|
|
if not exist %CD%\%SUBDIR% md %CD%\%SUBDIR%
|
|
|
|
for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage
|
|
|
|
if /i "%1" == "dbgx.msi" (
|
|
if exist %CD%\%SUBDIR%\dbgx.msi del %CD%\%SUBDIR%\dbgx.msi
|
|
%_NTDRIVE%%_NTROOT%\tools\wiimport.vbs %CD%\%SUBDIR%\dbgx.msi /c %CD%\dbgx_idts *.idt >>createdbg.err
|
|
|
|
for %%b in (complocator component createfolder directory featurecomponents launchcondition property registry removefile shortcut upgrade _summaryinformation ) do (
|
|
%_NTDRIVE%%_NTROOT%\tools\wiimport.vbs %CD%\%SUBDIR%\dbgx.msi %CD%\dbgx_idts\%SUBDIR% %%b.idt >> createdbg.err
|
|
)
|
|
)
|
|
|
|
|
|
REM if tables were edited in dbgx.msi, use this script below to export them back
|
|
REM to the IDT's for checking in
|
|
|
|
if /i "%1" == "export" (
|
|
for /f %%a in ('dir /s /b %CD%\dbgx_idts') do (
|
|
sd edit %%a
|
|
)
|
|
%_NTDRIVE%%_NTROOT%\tools\wiexport.vbs %CD%\dbgx.msi %CD%\dbgx_idts * >>createdbg.err
|
|
)
|