PDA

View Full Version : Various Urgent Questions



NewsArchive
07-04-2007, 02:17 AM
I've just raised these questions on the SetupBuilder support webpage, but,
if someone can provide the answer here, more quickly, I'd be most grateful.

I'm VERY short of time and I need to do a number of things in a new Setup,
which I don't know how to do:
1: Can I put together a DIALOG which incorporates my choice of constants -
e.g. something like: "Welcome to the " & CHOOSE(#DELUXE# = "TRUE",
"Deluxe", "Standard") & "Edition ..." or do I need to produce separate
dialogs for each combination that my users can have?
2: Can I selectively delete the sub-directories or specified wild-carded
files within the folder that the user chooses for program installation? How?
With regard to this, can I test the size of a specific file to determine if
I can delete it and others related to it? How?
3: If I'm creating an if/elsif/../else set of dialogs (see question 1), what
is the quickest way for me to enter the subtly different information from
dialog to dialog
4: What is the minimal dialog-naming information I need to set up within the
dialog to be able to do the if/else logic?
Hope these questions are clear.
5: Can I test what a dialog looks like (or a sequence of them) without
compiling the setup?
Thanks in Anticipation, Warren

NewsArchive
07-04-2007, 02:18 AM
Warren,

> I've just raised these questions on the SetupBuilder support webpage, but,
> if someone can provide the answer here, more quickly, I'd be most
> grateful.
>
> I'm VERY short of time and I need to do a number of things in a new Setup,
> which I don't know how to do:
> 1: Can I put together a DIALOG which incorporates my choice of constants -
> e.g. something like: "Welcome to the " & CHOOSE(#DELUXE# = "TRUE",
> "Deluxe", "Standard") & "Edition ..." or do I need to produce separate
> dialogs for each combination that my users can have?

No problem. Just use a variable in your dialog and set the value of this
variable in the script.

BTW, here is an interesting demo project based on the "Releases" feature.

http://www.lindersoft.com/forums/showthread.php?t=2548

> 2: Can I selectively delete the sub-directories or specified wild-carded
> files within the folder that the user chooses for program installation?
> How? With regard to this, can I test the size of a specific file to
> determine if I can delete it and others related to it? How?

Just use the "Delete Folder Tree..." script function. The size of a file
can be retrieved by using the "Get File Information..." script function.

> 3: If I'm creating an if/elsif/../else set of dialogs (see question 1),
> what is the quickest way for me to enter the subtly different information
> from dialog to dialog

Not required (see answer 1).

> 4: What is the minimal dialog-naming information I need to set up within
> the dialog to be able to do the if/else logic?
> Hope these questions are clear.

Unfortunately, I do not understand question 4 :-(

> 5: Can I test what a dialog looks like (or a sequence of them) without
> compiling the setup?

No. Dialogs are created at runtime.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
07-05-2007, 02:14 AM
4. If I understand your question, you can manipulate (show/hide) various
dialogs either by the number in which they're stacked prior to a Loop Wizard
statement (Hide Wizard Dialog #2) or by entering a label you find convenient
in the Dialog Label field on the Advanced tab of a dialog definition, then
on a show/hide wizard dialog screen ticking the "Use dialog label" box and
supplying the appropriate dialog label. (Show Wizard Dialog "ADVANCED" )
Check the Dialog2.sb6 example file.

Although as Friedrich says, using variables for the messages you display on
dialog screens could eliminate much (perhaps all) of your need to do so.

Jane

NewsArchive
07-05-2007, 02:14 AM
Thanks Friedrich and Jane, and hats off to Friedrich's tech support team
which was onto my support request in minutes, despite it having been July
4th (which I gather has some special significance in the U.S. of A.)

Happy 4th of July to all of you on that side of the world

Regards and thanks
Warren