installshield 2009实现安装包自动编译

1.根据当前日期,在服务器上建立一个以日期命名的文件夹,删除本地现有的文件夹并下载最新的文件到本地
call mydate %DATE%
Rem Copy files from common folder on the designer to the common folder on my computer
rd "F:\MySourceFile\MMS2.0\program\DSStore\x86" /s/q
pause
xcopy "[url=file://\\155.100.40.73\output\DSStore\x86]\\155.100.40.73\output\DSStore\x86[/url]" "F:\MySourceFile\MMS2.0\program\DSStore\x86\" /E/Y


2.利用IS2009命令行实现不打开IDE,用命令行自动编译
call mydate %DATE%

rem ===============================================
rem Set up tools.
rem ===============================================
set COMPILER=c:\Program Files\InstallShield\2009\System\Compile.exe
set BUILDER=c:\Program Files\InstallShield\2009\System\IsCmdBld.exe
rem ===============================================
rem Set the environment for the compiler
rem ===============================================
set INSTALLPROJECT=F:\My Installations\IS2009\DSStore\DSStore.ism
set CURRENTBUILD=DSStore.ism
set INCLUDESQLRT=C:\Program Files\InstallShield\2009\Script\SQLRuntime\Include
set INCLUDEIIS=C:\Program Files\InstallShield\2009\script\IISRuntime\Include
set INCLUDEXML=C:\Program Files\InstallShield\2009\script\XMLRuntime\Include
set INCLUDEIFX=c:\Program Files\InstallShield\2009\Script\Ifx\Include
set INCLUDEISRT=c:\Program Files\InstallShield\2009\Script\Isrt\Include
set INCLUDESCRIPT=F:\My Installations\IS2009\DSStore\DSStore\Script Files
set LINKPATHS=-LibPath"c:\Program Files\InstallShield\2009\Script\Ifx\Lib" -LibPath"c:\Program Files\InstallShield\2009\Script\Isrt\Lib" -LibPath"C:\Program Files\InstallShield\2009\Script\SQLRuntime\Lib"
set RULFILES=F:\My Installations\IS2009\DSStore\DSStore\Script Files\setup.rul

set LIBRARIES="isrt.obl" "ifx.obl" "SQLRT.obl"
set DEFINITIONS=
set SWITCHES=-w50 -e50 -v3

rem ==================================================
rem Compile
rem ==================================================
IsCmdBld.exe -p "%INSTALLPROJECT%" -r "DSStore"
if ERRORLEVEL 1 goto InstallShieldCompileError

@echo Build successfully!


3.拷贝最新文件到服务器上
xcopy "F:\My Installations\IS2009\DSStore\DSStore\Media\DSStore\Disk Images\Disk1" "[url=file://\\Pdm\Software_InstallationCDs\Motic]\\Pdm\Software_InstallationCDs\Motic[/url] VM V1\DSStore\Test\%DATE%\DSStore\" /E/Y

@echo Copy files from disk1 to the pdm  successfully!

 

版权声明:转载请注明原始出处。 

你可能感兴趣的:(Install)