From 1a255995b6b8efe2f447697fafab98f3dcab452d Mon Sep 17 00:00:00 2001 From: stansmith Date: Fri, 12 Oct 2007 20:55:21 +0000 Subject: [PATCH] [WinOF] script to build WIX installers for all supported architectures. git-svn-id: svn://openib.tc.cornell.edu/gen1@852 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/WinOF/WIX/buildall.bat | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 branches/WinOF/WIX/buildall.bat diff --git a/branches/WinOF/WIX/buildall.bat b/branches/WinOF/WIX/buildall.bat new file mode 100644 index 00000000..9644fa80 --- /dev/null +++ b/branches/WinOF/WIX/buildall.bat @@ -0,0 +1,62 @@ +@echo off +setlocal +rem Build WIX installer (.msi) for all architectures +rem +rem usage: buildall {dest-path-for-msi-files} + +rem *** REQUIRES nmake, common invocation from Visual C or DDK command window + +if "%1" == "" ( + set DST=D:\temp +) else ( + set DST=%1 +) +if NOT EXIST %DST% ( + echo Installer output path %DST% not found? + exit /B +) +nmake /? > %DST%\jnk.txt +if ERRORLEVEL 1 ( + echo %0 missing nmake.exe in PATH? + exit /B +) +del /Q /F %DST%\jnk.txt + +if NOT EXIST %CD%\bin\HCA\amd64 ( + echo %0 - %CD%\bin not populated correctly? see trunk\etc\makebin.bat + exit /B +) + +if EXIST ia64\WOF_ia64.msi del /Q /F ia64\WOF_ia64.msi +if EXIST x64\WOF_x64.msi del /Q /F x64\WOF_x64.msi +if EXIST x86\WOF_x86.msi del /Q /F x86\WOF_x86.msi + +if EXIST %DST%\WOF_ia64.msi del /Q /F %DST%\WOF_ia64.msi +if EXIST %DST%\WOF_x64.msi del /Q /F %DST%\WOF_x64.msi +if EXIST %DST%\WOF_x86.msi del /Q /F %DST%\WOF_x86.msi + +pushd ia64 +nmake full +if ERRORLEVEL 1 exit /B +echo move /Y WOF_ia64.msi %DST% +move /Y WOF_ia64.msi %DST% +popd +pushd x64 +nmake full +if ERRORLEVEL 1 exit /B +echo move /Y WOF_x64.msi %DST% +move /Y WOF_x64.msi %DST% +popd +pushd x86 +nmake full +if ERRORLEVEL 1 exit /B +echo move /Y WOF_x86.msi %DST% +move /Y WOF_x86.msi %DST% +popd +dir %DST%\*.msi + +echo '' +echo Done - WIX installers in %DST% + +endlocal +@echo on -- 2.41.0