PDA

View Full Version : Best spot to place code in script



Doug I
01-16-2006, 02:08 PM
Hi,

I'm trying to determine the best spot in the script to do a special date check to give a warning/abort option to a customer before proceeding any further.

I got my code to work, except I don't like the placement I have it in. I placed the code check at the start of the [Install Files] section.
Is there a spot I can place my code where it occurs immediately after pressing the Next Button on the Select Install Folder Wizard Dialog?
(Note: I need it after this step because my code relies on %_SB_INSTALLDIR%)

Thanks,
Doug

linder
01-18-2006, 01:16 AM
Doug,

If you need it after the Select Install Folder Wizard dialog then place it inside the the Loop Wizard.

For example (if you Select Install Folder dialog is #3)

Loop Wizard
Wizard Auto Break
If %_SB_DIALOGID% Equals "3" Then
Yadda
End
End

Does this help?