PDA

View Full Version : Runtime variable not translated in Run Command Line



NewsArchive
12-04-2005, 06:31 AM
Hi Friedrich

Using SB Dev 5.2.1321

I am running the MSDE setup at the end of my script and the Run
command line contains the %_SB_INSTALLDIR% variable. This produces a
syntax error. If I replace the variable with "C:\" it works. It looks
like the variable does not get translated.

This works:
INSTANCENAME=mydb SAPWD=......... DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL /L C:\MSDELog.log

this doesn't
INSTANCENAME=mydb SAPWD=......... DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL /L %_SB_INSTALLDIR%\Setup\MSDELog.log

Also I tried to include an OutputDebugString to see what the command
line contained but I could not get the debug output to be displayed in
debugview. I sungle stepped through the debugger and used debug mode =
Full.

TIA

Sed Mayne

NewsArchive
12-04-2005, 06:45 AM
Sed,

Does SetupBuilder report a compiler (syntax) error?

Please add the whole string to a Display Message Box:

INSTANCENAME=mydb SAPWD=......... DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL /L %_SB_INSTALLDIR%\Setup\MSDELog.log

What do you see?

I tested the OutputDebugString and it looked ok in DebugView
here on my machine.

Thanks,
Andrea

Sales and Accounting, Lindersoft
www.setupbuilder.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5