@rem this is a helper to CopyMSJobs.vbs and CreateStandAloneInstall.cmd

@if "%2" == "" (
    @echo "Usage: CopyViewer <TargetDirPath> <ViewerPath> [i386|ia64|amd64]" 
    exit /b 1    
)

@set TARGET=%1
@set VIEWERPATH=%2

@if "%3" == "" ( 
    @set ARCH=i386  
) else (
    @set ARCH=%3
)


@signtool sign /q /a /uw /r "Microsoft Test Root Authority" /d "Microsoft Windows TEST" /du "http://ntbld" %MSJOBSPATH%\WevtViewer.dll

@xcopy /Y /C %VIEWERPATH%\wevtViewer.dll %TARGET%\%ARCH%
