Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Export (Build) Batch File...


1 reply to this topic

ajenkins

ajenkins
  • Members
  • 3 posts

Posted 05 January 2005 - 01:18

Is there a direct way to drive IS 5.5 builds using a batch file? Has anyone tried adapting a batch file created using 6.x and making that work in a 5.5 environment? Weighing the alternatives ... thanks. - Alex

Perotin

Perotin
  • Full Members
  • 407 posts

Posted 06 January 2005 - 16:12

if you have compile.exe and build.exe in your program folder, you can run them from a batch file ...

CODE

: Save the current search path
Set SavePath=%Path%
: Set the search path to find InstallShield's command line tools
Path "%ISHIELD%\Program";%Path%

set INCLUDE=%include_dir%
: Execute the command line compiler
compile setup.rul -i"%INCLUDE%" > ISBuild.rpt
:: Test for success. Quit if there was a compiler error.if errorlevel 1 goto CompilerErrorOccurred

isbuild -m"%media_name%" -p"%folder%" -b"%output%" >> ISBuild.rpt
:: Test for success. Quit if there was a build error.
if errorlevel 1 goto BuildErrorOccurred

:CompilerErrorOccurred
echo 
echo 
echo 
echo.    ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo.    ³                                                                    ³
echo.    ³   Compile error ³
echo.    ³   Media not updated ...                                   ³
echo.    ³                                                                    ³
echo.    ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Pause press any key to view the compile report
type ISBuild.rpt | more
Goto _exit

: Report the build error; then exit
:BuildErrorOccurred
echo 
echo 
echo 
echo.    ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo.    ³                                                                    ³
echo.    ³   Build error.                             ³
echo.    ³   Media not updated ...                                   ³
echo.    ³                                                                    ³
echo.    ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Pause press any key to view the build report
Type ISBuild.rpt | More

:_exit
Path=%SavePath%
Set SavePath=
del isbuild.rpt /q

Edited by Perotin, 06 January 2005 - 16:13.

Gruß / regards
Thomas