PDA

View Full Version : How to Lock Install Folder



NewsArchive
12-15-2015, 09:49 AM
In older SetupBuilder that I used with Clarion 6.3 apps, there was a setting
on the Install Folder setup where you could select to Lock the Folder. This
worked well in one of our apps where we wanted to inform the user where the
program/files were being installed, but we did not want them to be able to
change that default setting.

Now, I'm working on my first SB10 installation and I don't see how to allow
the installation folder dialog to appear, but to prevent the user from being
able to change the setting. Is there a way to do that?

Thanks,
Mike Springer

NewsArchive
12-15-2015, 09:49 AM
Mike,

> Now, I'm working on my first SB10 installation and I don't see how to
> allow the installation folder dialog to appear, but to prevent the
> user from being able to change the setting. Is there a way to do
> that?

You have several different options:

1. Do not provide any dialog to change the folder. The "Ready to Install"
dialog will display the folder.

2. Display the Select Folder dialog but "disable" the folder entry and
"Browse..." button.

3. Do not allow to change the folder, but allow to change the drive letter.

Do you need 1.), 2.) or 3.)?

Friedrich

NewsArchive
12-15-2015, 09:50 AM
Fredrich,
I'd like to use #2 - Display the Select Folder Dialog but "disable" the
folder entry and browse button. How do I do that?

Thanks,
Mike

NewsArchive
12-15-2015, 09:50 AM
Mike,

> I'd like to use #2 - Display the Select Folder Dialog but "disable"
> the folder entry and browse button. How do I do that?

You can use the "Wizard: Set Control Properties..." to disable the entry and
browse button. See attached screenshots.

Does this help?

Friedrich

NewsArchive
12-15-2015, 09:51 AM
Thank you Fredrich. It certainly looks like it will work perfectly for this
scenario. I'll try it this afternoon when I return to the office and
confirm with you.

I appreciate your terrific support!
Mike Springer

NewsArchive
12-16-2015, 04:43 AM
Fredrich,
That worked great. But even more, it really helped me begin to get my head
around the scripting design of Setup Builder.

I can't tell you how much I appreciated your effort to show me how to
implement the feature I was wanting - it opened the door for me to begin
grasping the power and flexibility of your great tool.

Thanks for taking the time to push me along.
Mike Springer

NewsArchive
12-16-2015, 04:46 AM
Mike,

Thank you so much for your kind words. I am glad it's working fine.

Please always let me know if there is any problem or question (or
suggestion)!

Friedrich