PTShellList

Got a problem you cannot solve? Try here.
markoh3
Posts: 11
Joined: Mon Mar 03, 2014 2:52 am

PTShellList

Postby markoh3 » Thu Mar 13, 2014 9:58 am

Hi,

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

Thanks in advance.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: PTShellList

Postby FrancescoT » Thu Mar 13, 2014 12:24 pm

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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

markoh3
Posts: 11
Joined: Mon Mar 03, 2014 2:52 am

Re: PTShellList

Postby markoh3 » Fri Mar 14, 2014 2:10 am

Hi Francesco,

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: PTShellList

Postby FrancescoT » Fri Mar 14, 2014 9:08 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 86 guests