Compiler Variables: problems with use of
Posted: Thu Mar 05, 2009 7:10 pm
Hello:
Newbie to InstallAware. Very much like the idea of compiler variables for setting up several install scenarios which are very similar: a Professional, Vendor and Update.
I added the following Compile Variables: DO_PROF = TRUE, DO_VEND = FALSE, DO_PROFUP = FALSE, DO_VENDUP = FALSE to the project settings tree.
But when I am running in debug mode I note that no matter the setting, any Conditional IF DO_PROF equals TRUE clause is processed just the same as Conditional IF DO_VEND equals TRUE clause. (even though DO_VEND = FALSE)
My test clause is SET Variable TITLE equals NMT Treeview Professional and
for the DO_VEND, SET Variable TITLE equals NMT Treeview Vendor.
Both are processed, thus the title ends up being "NMT Treeview Vendor." because it is the last line.
In the Watch variables area if I watch the DO_VEND and DO_PROF, they are "undefined" unless I specifically SET VARIABLE TO for each in the script. I would think that they are defined in the project settings area?
My next step is to use the Conditional variables for modifying the install files, but I'm getting the feeling that I'm missing something very basic here.
I'd appreciate some help.
Thanks
Chuck Belanger
Newbie to InstallAware. Very much like the idea of compiler variables for setting up several install scenarios which are very similar: a Professional, Vendor and Update.
I added the following Compile Variables: DO_PROF = TRUE, DO_VEND = FALSE, DO_PROFUP = FALSE, DO_VENDUP = FALSE to the project settings tree.
But when I am running in debug mode I note that no matter the setting, any Conditional IF DO_PROF equals TRUE clause is processed just the same as Conditional IF DO_VEND equals TRUE clause. (even though DO_VEND = FALSE)
My test clause is SET Variable TITLE equals NMT Treeview Professional and
for the DO_VEND, SET Variable TITLE equals NMT Treeview Vendor.
Both are processed, thus the title ends up being "NMT Treeview Vendor." because it is the last line.
In the Watch variables area if I watch the DO_VEND and DO_PROF, they are "undefined" unless I specifically SET VARIABLE TO for each in the script. I would think that they are defined in the project settings area?
My next step is to use the Conditional variables for modifying the install files, but I'm getting the feeling that I'm missing something very basic here.
I'd appreciate some help.
Thanks
Chuck Belanger