PDA

View Full Version : How to "get in" after user selects installfolder



NewsArchive
07-31-2009, 03:14 AM
Hi,

Is it possible to intersept an install if the user select an illegal
directory (don't ask me why the folder in question is illegal <g> ):

I have tried this:

......
Define Wizard Dialog "#4" (Select Install Folder) (%_SB_INSTALLDIR%)
If %_SB_INSTALLDIR% Contains "%PROGRAMFILESDIR%" Then
Display Message Box "You try to install in %PROGRAMFILESDIR..." --
"Wrong folder!"
End
Define Wizard Dialog "#5" (Ready to Install)
......

but that does not work.

Any ideas ?

Cheers,
/Poul

NewsArchive
07-31-2009, 03:15 AM
Poul,

Slightly wrong paradigm.

An IF/Then between wizard dialog definitions will not do anything, as you've
observed.
You need to put it within the "Wizard Loop / End" structure that comes after
the wizard defniitions.

Think of it like Clarion -
- you declare your Window structure(s) in the DATA section
- you display and process them in an ACCEPT loop in the CODE section.

Pic attached.

Jane

NewsArchive
07-31-2009, 03:16 AM
Thanks Jane,

A very clear explanation :-)

Cheers,
/Poul

NewsArchive
07-31-2009, 03:16 AM
Jane,

You are the BOMB


--
Dan Scott
Garage Partner Pro
www.garagepartner.com