Page 1 of 1

PTShellList

Posted: Thu Mar 13, 2014 9:58 am
by markoh3
Hi,

If I use a PTShellList how could I enable the Next button after a user selects a file?

Thanks in advance.

Re: PTShellList

Posted: Thu Mar 13, 2014 12:24 pm
by FrancescoT
Dear User,

Unfortunately, you can't currently.

Alternatively, from the MSI script code you can check if a file has been selected and if it's not, you can force the dialog that includes the "Shell List" control to be displayed again ... until a valid selection is made.

For example, you could use an approach as follow;

Code: Select all

Set Variable MYFILE to //This variable must be associated to the "SHELL-LIST" control  ... to hold the selected value.

while Variable MYFILE Equals  loop //While  MYFILE is Empty
 Display Dialog: MyDialog, wait for dialog to return (modal) // The dialog that includes the "SHELL-LIST" control 
 if Variable WIZARD Equals CANCEL
   GoTo Label: xxxxx //Go-to a previous dialog
 end
 
 if Variable MYFILE Equals
   MessageBox: Error, You must select a file!
 end
 
wend


Hope this helps you.

Re: PTShellList

Posted: Fri Mar 14, 2014 2:10 am
by markoh3
Hi Francesco,

Thank you for your quick reply.
This works for me! :D

Re: PTShellList

Posted: Fri Mar 14, 2014 9:08 am
by FrancescoT
:D