PDA

View Full Version : Compiling multiple versions based on compile choices



NewsArchive
07-01-2007, 05:30 AM
I'm having difficulty coming to grips with this:

I want to compile several different installation sets, depending on a
combination of factors chosen at compile time

In particular, I (the developer, NOT the end user) want to choose which of
the following conditions are met at compile time and then allow the compile
script to choose the appropriate combination of components:
choice of
LICENSE_SIZE =
1 user license OR
2 user license OR
4 user license OR
8 user license OR
.... OR
site license

AND
extension 1 (TRUE or FALSE) AND/OR
extension 2 (TRUE or FALSE) AND/OR
extension 3 (TRUE or FALSE) etc.

So, step 1 - how do I set up these variables and prompt the person running
the build, to set their values?

I THINK I know how to take it from there.

Thanks in (urgent) anticipation
Warren

NewsArchive
07-01-2007, 05:30 AM
Urgent on a Saturday night, Warren...??? Ouch <G>

There may be more elegant ways, but one would be to define a few compiler
constants, then display a message box with an OK/Cancel choice at compile
time.
If you don't like the setting, hit Cancel, change the constant(s) you need
to, save, and recompile.
Use compiler #if #else statements to determine how your script compiles
based on those constants.
Screen shot attached.

HTH

Jane

NewsArchive
07-01-2007, 05:30 AM
It's far from what I want, but, at least in the first instance it would
work. I really want a script that prompts a fairly unsophisticated staff
member to be able to build all the installation setup programs without
understanding any of the internals.

Saturday night there, and I greatly appreciate your dedication to the news
group (why aren't you out partying?). It's Sunday here, and we go into
production of a financial data publication (book) tomorrow (Australia's
financial year ends June 30, unlike the U.S.) and then the software packages
later in the week. I need this setup to be operational tomorrow (Monday) for
testing on Tuesday. Up until now, I've used SetupBuilder 4 (separate
SetupBuilder files for each configuration [uggh]), so this is a complete
rewrite.

Regards
Warren