+ Reply to Thread
Results 1 to 9 of 9

Thread: Forcing use of browse to select a folder

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Forcing use of browse to select a folder

    Hi Friedrich,

    Feature request here, unless you already have a way to do it...

    Background: In our programs we force a specific folder name for the program installation to ensure that it is installed in its own location (our programs are tax/year specific and cannot be installed over prior year versions like more generic programs.) We always provide the desired path/folder structure as the default SB install dir.

    In the built-in 'Select Install Folder' dialog, you have an option to append a specified folder to the selected path. That works great if you use the browse button, but if you simply type something into the entry control, nothing is appended and we could up in an undesired folder.

    I know I can trap for that in the script, but it would be a lot more convenient if the dialog either:
    a) always checked to see if it should append when the dialog is completed or
    b) had an option to disable the entry control so that the user always uses the browse button, which would append it correctly.

    Option B would work fine for us and seems pretty simple to add (haha -- I love saying that to other programmers!)

    Thanks,
    Tom

  2. #2

    Default Re: Forcing use of browse to select a folder

    A little more on this.

    I've added some scripting to ensure that the required folder is appended to the path, but there doesn't seem to be any way to get the dialog to reinitialize or display the modified value other than going one dialog back, then forward again.

    For example:
    - On first entry, %_SB_InstallDir% is pre loaded with a default path of "C:\Somewhere\RequiredFolder".
    - User manually changes that to "C:\Somewhere\Else" and clicks next.
    - I trap the change, display a message that the program must be installed in 'RequiredFolder' and reset %_SB_InstallDir% to "C:\Somwhere\Else\RequiredFolder".

    If I cycle the loop after displaying the message, the dialog remains continues to show the originally modified (bad) path, and pressing Next goes through the cycle of check/message again. If I don't loop so that Next goes to the following dialog, press back, the unmodified path is still displayed and the check/message is displayed again.

    So, how can I force a dialog to update the displayed value without nexting into it from the previous dialog. I've tried 'Refresh next dialog' before looping, using event init and reopen and none of it has any effect.

    Sorry if this seems confusing...

    Thanks,
    Tom

  3. #3

    Default Re: Forcing use of browse to select a folder

    Tom,

    Do you have a small project that demonstrates this? I'll then try to modify it accordingly.
    Robert D.

    Technical Support
    Lindersoft
    www.setupbuilder.com

  4. #4

    Default Re: Forcing use of browse to select a folder

    I'll put one together in the next day or so and email it to support.

    Thanks,
    Tom

  5. #5

    Default Re: Forcing use of browse to select a folder

    I have this same problem. _sb_installdir is changed and upon clicking Next I can show a message box that shows the new install folder, but the following dialog displays _sb_installdir in a description which does not change to the new path.
    What is the fix for this?
    Thanks,
    Carl

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Forcing use of browse to select a folder

    Hi Carl,

    just send your .sbp file to support [at] lindersoft [dot] com and we'll fix it in your project for you.

    Friedrich

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Forcing use of browse to select a folder

    Or send a small demo project and we'll make the required modifications for you.

    Friedrich

  8. #8

    Default Re: Forcing use of browse to select a folder

    Thank you Friedrich. I received the sample app and it worked just as expected.

  9. #9
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Forcing use of browse to select a folder

    Thanks for the update, Carl!

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •