How to build a product with InstallShield
2014-05-26 09:57
337 查看
How to build a product with InstallShield:
put all build script in same folder. Example: "buildscript".
1 use a script runmeToBuild.bat as top script:
2 other scripts:
compile_product.bat
copyfiles.bat
callbuild.bat
callInstallShield.bat
copyProductToShare.bat
put all build script in same folder. Example: "buildscript".
1 use a script runmeToBuild.bat as top script:
@echo off REM set RUNDIR=D:\AutoBuild\buildscript set RUNDIR=%cd% call %RUNDIR%\compile_product.bat call %RUNDIR%\copyfiles.bat call %RUNDIR%\callbuild.bat pause
2 other scripts:
compile_product.bat
@echo off echo "*** date 2012-7-19 ***" echo "*** author Zhen Zhang ***" echo "*** version 2012.1.0 ***" REM make sure cmake.exe is available. By default you can find it under "C:\Program Files\CMake 2.8\bin\cmake.exe" REM make sure msbuild.exe is available. By default you can find it under "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" REM get current director path set CUR_DIR=%cd% del %CUR_DIR%\build_install.log /Q echo " *** compile for product *** " echo " *** build for product *** " >> %CUR_DIR%\build_install.log echo "run CMake for product" echo "run CMake for product" >> %CUR_DIR%\build_install.log pushd %CUR_DIR%\build\product >> %CUR_DIR%\build_install.log svn update >> %CUR_DIR%\build_install.log rd %CUR_DIR%\binaries\product /S /Q mkdir %CUR_DIR%\binaries\product pushd %CUR_DIR%\binaries\product cmake.exe -G "Visual Studio 10" %CUR_DIR%\build\product >> %CUR_DIR%\build_install.log echo "run msbuild for product" echo "run msbuild for product" >> %CUR_DIR%\build_install.log msbuild.exe %CUR_DIR%\binaries\product\INSTALL.vcxproj /p:configuration=release /p:Platform=Win32 >> %CUR_DIR%\build_install.log echo " *** finish compile for product *** " echo " *** finish compile for product *** " >> %CUR_DIR%\build_install.log REM if you have many products, compile them one by one pushd %CUR_DIR%
copyfiles.bat
@echo off set CURRENTDIR=%cd% set DES_PATH=D:\AutoBuild\Source del %CURRENTDIR%\copyfiles.log /Q echo " *** start copy PRODUCT files *** " echo " *** start copy PRODUCT files *** " >> %CUR_DIR%\copyfiles.log rd %DES_PATH%\PRO_NAME_V2012 /S /Q md %DES_PATH%\PRO_NAME_V2012 xcopy %CURRENTDIR%\binaries\product %DES_PATH%\PRO_NAME_V2012\ /E <span style="white-space:pre"> </span>>> %CUR_DIR%\copyfiles.log echo " *** finish copy PRODUCT files *** " echo " *** finish copy PRODUCT files *** " >> %CUR_DIR%\copyfiles.log REM if you have many products, copy source files/folders one by one
callbuild.bat
@echo off set BUILD_PATH=D:\AutoBuild set AutoBuildPath=%BUILD_PATH% del %BUILD_PATH%\build.log call %RUNDIR%\callInstallShield.bat call %RUNDIR%\copyProductToShare.bat
callInstallShield.bat
@echo on echo begin to build Product... >> %AutoBuildPath%\build.log ISCmdBld.exe -p %AutoBuildPath%\projectForIS\Prod\Prod.ism -r "PRODNAME" -c COMP -e Y >>%AutoBuildPath%\build.log echo finish build Product. >> %AutoBuildPath%\build.log
copyProductToShare.bat
@echo on echo begin to copy PROD.exe to \\share_machine\share_path\ ... >> %AutoBuildPath%\build.log copy %AutoBuildPath%\releaseVersion\PROD.exe "\\share_machine\share_path\PROD.exe" /Y >> %AutoBuildPath%\build.log echo finish copy PROD.exe to \\share_machine\share_path\. >> %AutoBuildPath%\build.log
相关文章推荐
- How-to: Install hive with mysql metastore
- how to install ubuntu OS combined with Windows
- How to install redis with Ruby
- Q: How to generate exe install and uninstall file for an eclipse product?
- How to Build a RESTful API Web Service with PHP
- How to build a one-click process with DocuSign for Salesforce
- How to install Nginx, PHP, PHP-FPM and MySQL under Windows with Cygwin
- How To Install Java on Ubuntu with Apt-Get
- How To Install Java with Apt-Get on Ubuntu 16.04
- How To Install Java on Ubuntu with Apt-Get
- How to install OS X Mavericks in Virtualbox with Niresh
- How to Install SugarCRM with SQL Server 2008 and IIS 7.0
- Translation:How to build Tesseract 3.03 with Visual Studio 2013 (翻译《VS2013 建立tesseract3.03工程》)
- DIY BROADCAST : How to build your own Internet TV Channel with Open-Source & other goodies
- How to Build ffmpeg with NDK r9
- How to Build ffmpeg with NDK r9
- How to Build ffmpeg with NDK r9
- How To Install Java on Ubuntu with Apt-Get
- [Tutorial] How to build a GUI in ROS with Qt / C++?
- How To Install Java with Apt-Get on Ubuntu 16.04