Hi,
If I use a PTShellList how could I enable the Next button after a user selects a file?
Thanks in advance.
PTShellList
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: PTShellList
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;
Hope this helps you.
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
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
Re: PTShellList
Hi Francesco,
Thank you for your quick reply.
This works for me!
Thank you for your quick reply.
This works for me!

-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: PTShellList

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
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
Who is online
Users browsing this forum: No registered users and 86 guests