Is there anyway to specifiy a #define statement as an argument to the command line? I have a single Installshield project which builds Demo and Normal versions of a project. There is a #define in the code which designates that the script should do Demo stuff. I want to (from the command line), specify that #define so I can put it in a buildscript.
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.
Command line and #define
1 reply to this topic
Posted 23 June 2003 - 13:40
Yes, you can. The help says the following on the subject:
|Defining constants from the command line|
You can define InstallShield Script Compiler constants from the command line, instead of in the script, using the /D option. For example, the command line statement COMPILE /DMAX_BUF=150 /DMAX_LENGTH=255 SETUP.RUL is equivalent to the define statements shown below:
#define MAX_BUF 150
#define MAX_LENGTH 255
The following restrictions apply when defining constants from the command line: