1@echo off 2REM 3REM build.bat creates the CAB files 4REM Note that when invoking the .ini file with AppMgr (e.g. via setup.exe), 5REM you must use the full path, or ActiveSync will report an error with the setup. 6REM 7 8REM 9REM You Must modify the following directories to point to the correct locations. 10REM 11 12set lifeDir=%WXWIN%\demos\life 13set lifeARMBinary="%lifeDir%\evc_wince_armv4\life.exe" 14set fileLife="%lifeDir%\setup\wince\life.inf" 15set fileCabwiz="c:\program files\windows ce tools\wce420\pocket pc 2003\Tools\cabwiz.exe" 16 17if not exist ARM_bins mkdir ARM_bins 18 19if not exist %lifeARMBinary% goto NoBin 20@echo "Copying binary to ARM_bins..." 21copy %lifeARMBinary% ARM_bins 22 23if not exist %fileLife% goto Usage 24if not exist %fileCabwiz% goto Usage 25@echo Building %fileCabwiz% %fileLife% 26%fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM 27 28REM To make CABs for two CPUS, use this line and uncomment lines in the .inf file 29REM %fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM PPC2003_x86 30 31@echo Copying setup files to the Deliver directory 32if not exist Deliver mkdir Deliver 33copy life.*.CAB Deliver 34copy install.ini Deliver 35copy life.ico Deliver 36copy setup.exe Deliver 37 38echo "Built: see the Deliver directory for the installation files." 39goto Exit 40 41:Usage 42@echo --- 43@echo Edit this batch file to point to the correct directories 44@echo fileLife = %fileLife% 45@echo fileCabwiz = %fileCabwiz% 46@echo (these files are included in the Windows CE SDK) 47@echo --- 48 49goto Exit 50 51:NoBin 52@echo You need to build %lifeARMBinary%. 53 54:Exit 55 56