Reply to Thread

Post a reply to the thread: Install Folder not verified

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 02-19-2015, 02:57 AM
    linder

    Re: Install Folder not verified

    Perfect. Thanks for the update.

    Friedrich
  • 02-18-2015, 10:24 AM
    PodHunter

    Re: Install Folder not verified

    Quote Originally Posted by linder View Post
    You can use the built-in script functions to see if the correct folder does exist. For example, "If File/Folder..." or check if the DLL has the correct and expected version number ("Get File Info..."), etc.
    Thanks for your suggestion. The following seems to do what I want:

    ! Edit '3' to match the ID of your 'Select Install Folder' dialog
    If %_SB_DIALOGID% Equals "3" Then
    If %_SB_INSTALLDIR% File or Folder doesn't exist Then
    Display Message Box "Please browse to find the XXX folder" -- "Installation Folder"
    Cycle Loop
    End
    End
  • 02-09-2015, 09:58 AM
    linder

    Re: Install Folder not verified

    BTW, and you can use the built-in script functions to see if the correct folder does exist. For example, "If File/Folder..." or check if the DLL has the correct and expected version number ("Get File Info..."), etc. If the "selected" folder is incorrect, display a warning message.

    And it's very well possible the 3rd-party has registered the installation location of the DLL in the registry. You can read that location from within the installer and pre-set it (e.g. "Detect Previous Version..." or "Get Registry Key Value...").

    Friedrich
  • 02-09-2015, 09:50 AM
    linder

    Re: Install Folder not verified

    Hello,

    You can do something similar to the attached code snippet.

    Does this help?

    Friedrich
  • 02-09-2015, 02:44 AM
    PodHunter

    Install Folder not verified

    I'm using the RC 8.5.4686.
    Because my DLL is deliverd to another author's folder (which must exist), you kindly added the No "Make new folder" option to the Select Install Folder dialog.
    However, that leads to another problem. At build time, I don't know where the third-party software is installed, so I make a guess. The user sees my guess, which may be incorrect. At that point the Select Install Folder dialog is visible and showing the wrong folder. User must change to a valid folder in order for installation to continue. User can't create a new folder and must navigate to a valid existing folder.
    How can I prevent installation continuing when a valid folder has not been selected?

Posting Permissions

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