This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: installation destination folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
05:53 AM
installation destination folder
Hello,
I am using a built-in panel for choosing an installation folder. It just has a text and two buttons: Restore to default and Choose...
Is it possible to tweak the panel, so that I could warn the user if they install to a non-empty folder or to a folder unacceptable in some sense?
Or is the only way is to write a custom panel?
Thanks in advance for your answers!
I am using a built-in panel for choosing an installation folder. It just has a text and two buttons: Restore to default and Choose...
Is it possible to tweak the panel, so that I could warn the user if they install to a non-empty folder or to a folder unacceptable in some sense?
Or is the only way is to write a custom panel?
Thanks in advance for your answers!
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
06:23 AM
What I do is the following: right after the panel I call a little custom code that I've wrote, that verifies that the path is not a relative one, and for one of our installers, if the path does not contain spaces. Based on the results of these tests (i.e. if any of them fails I set a $RETRY$ variable to true. And based on this variable being true I use the Display Message Dialog: if the information entered in the previous panel is wrong (i.e. $RETRY$ has been set to true by the custom code, the user is informed and by clicking OK they're redirected to the previous panel, which is the one asking for the user installation folder, where they have to enter again the information).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
06:34 AM
pv7721 wrote:
What I do is the following: right after the panel I call a little custom code that I've wrote, that verifies that the path is not a relative one, and for one of our installers, if the path does not contain spaces. Based on the results of these tests (i.e. if any of them fails I set a $RETRY$ variable to true. And based on this variable being true I use the Display Message Dialog: if the information entered in the previous panel is wrong (i.e. $RETRY$ has been set to true by the custom code, the user is informed and by clicking OK they're redirected to the previous panel, which is the one asking for the user installation folder, where they have to enter again the information).
Cool stuff! Thanks very much for the tip. I will try it and see how it looks like. Thanks very much again.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
07:08 AM
pv7721 wrote:
And based on this variable being true I use the Display Message Dialog: if the information entered in the previous panel is wrong (i.e. $RETRY$ has been set to true by the custom code, the user is informed and by clicking OK they're redirected to the previous panel, which is the one asking for the user installation folder, where they have to enter again the information).
How do you perform the redirect?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
07:18 AM
Just look at the Show Message Dialog Action, it can have 3 buttons. Enable the 1st one and notice that on the right you have the 1st option, ", if chosen, Return to the Previous Panel".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
07:20 AM
pv7721 wrote:
Just look at the Show Message Dialog Action, it can have 3 buttons. Enable the 1st one and notice that on the right you have the 1st option, ", if chosen, Return to the Previous Panel".
Thank you!
