Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaunchAppandWait command line argument

313 views
Skip to first unread message

Susan

unread,
Nov 16, 2000, 3:54:15 PM11/16/00
to
I am having problems with the following:

svLogPath = "-E -i combo.sql -o " + TARGETDIR +
"\\install_log.txt";
MessageBox (svLogPath, INFORMATION);

nResult = LaunchAppAndWait(svISQLW, svLogPath, WAIT);

The application runs, but the output file, "install_log.txt" does not
get created. When I 'hard code' the path (instead of using the
variable), it works fine. The message box returns the correct command
line argument. The problem is, I really want this log file generated to
the TARGETDIR, not to a hard-coded location. This is the last hurdle in
my app.

Olga-InstallShield

unread,
Nov 17, 2000, 12:00:09 AM11/17/00
to
Susan,

What version of InstallShield are you using?
Try using the ^ sign insetad of the +, so your commandline will look like
this:
svLogPath="-E =i combo.sql -o "+TARGETDIR^"install log.txt";
Also, what if you specify a short file name, so rather than install log.txt
you name the text file install.txt or just log.txt.
Does that make a difference?

--
Sincerely,

Olga K.
InstallSheild Technical Support

"Susan" <su...@ccc.net> wrote in message news:3A144977...@ccc.net...

Oscar Blass

unread,
Nov 17, 2000, 3:40:35 AM11/17/00
to
Last hurdle... famous last words...
Could be related to long paths... spaces... or something a fresh pair of
eyes could see. Put both lines of code (hardcoded and regular) in a message
box replace spaces with # symbols and see if they really compare or not.

Susan

unread,
Nov 17, 2000, 1:31:25 PM11/17/00
to Oscar Blass
They do compare. They are identical. It seems that the runtime interpreter is
somehow differentiating between a hard-coded string and its equivalent string
variable.
0 new messages