Whenever I want to build an executable for
all my installation file with ExeBuilder.exe,
I always have to do it by hand. This is the
only part that I couldn't and don't know
how to automate the process.
Does anyone know whether ExeBuilder.exe supports
command line option?
I tried to play with some of the common command
line inputs, and I was unable to invoke any of the
command line option. Please help! Thanx.
-Julie
ExeBuilder supports command line (in IS3). Look to the reference
manual/help. Create an ini file to tell it what to do and then it should
work. Perhaps try some code like the following (it's a MKS-shell
script).
Carsten
#----------------------------------------------------------------------
# samples for the ini file
#----------------------------------------------------------------------
# [EXE Builder]
# SrcDir=V:\Distrib\08.15\47.11\Install\Intel
# DestDir=V:\Distrib\08.15\47.11\Install
# CmdLine=SETUP.EXE
# Title=My Application for Windows NT(Intel), Version 08.15.47.11
# Compress=1
#----------------------------------------------------------------------
# delete old exe
# $Version should be here '08.15.47.11'
rm -f $TARGET/../SETUPEX.EXE
TARGET_EXE="$TARGET/../MyApp.$VERSION.EXE"
cd $IBIN
SELFEXINI=$IBIN\\SelfExtract.INI
echo "[EXE Builder]" > $SELFEXINI
echo "SrcDir=$TARGET" >> $SELFEXINI
echo "DestDir=$TARGET\\.." >> $SELFEXINI
echo "CmdLine=SETUP.EXE" >> $SELFEXINI
echo "Title=$EDITION_TEXT for Windows NT(${NT}), Version $VERSION" >>
$SELFEXINI
echo "Compress=$EXE_COMP" >> $SELFEXINI
start -w Exebuilder/Exebuild $SELFEXINI
if [ $? = 0 ]
then
# 'rename' SETUPEX.EXE to 'MyApp.08.15.47.11.EXE'
rm -f $TARGET_EXE
mv $TARGET/../SETUPEX.EXE $TARGET_EXE
if [ $? = 0 ]
then
echo " $TARGET_EXE made !"
rm -f $SELFEXINI # delete only if rename successfull
else
echo "\n\007[??] SETUPEX.EXE not renamed to $TARGET_EXE [rc=$?]"
fi
else
echo "\n\007[??] $TARGET_EXE not made [rc=$?]"
fi
--
Carsten Segieth, SQL Datenbanksysteme GmbH
Mail <mailto:car...@sql.de>