Reply to Thread

Post a reply to the thread: Installation Folder

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)

  • 07-15-2005, 11:06 AM
    slimboywynn

    Re: Installation Folder

    Works like a charm, I just needed to UPPER the value first before checking it.

    I must read what you type Friedrich, I used SET VARIABLE and not the STRING FUNCTION previously!
  • 07-15-2005, 09:54 AM
    linder

    Re: Installation Folder

    See private email (demo script).
  • 07-15-2005, 09:48 AM
    slimboywynn

    Re: Installation Folder

    Bugger, cant get this to work Friedrich

    Am I evaluating the expression? If so I'm getting all sorts of numbers back
  • 07-15-2005, 08:36 AM
    slimboywynn

    Re: Installation Folder

    Thanks Friedrich, I'm sure it will
  • 07-15-2005, 06:15 AM
    linder

    Re: Installation Folder

    No problem You can use the InStr String Function here. See test script. If the installation folder contains SYNC, the installer displays an error message and does not continue to the next dialog.

    ! Wizard dialog definition(s)
    Define Wizard Dialog "WELCOME" (Welcome)
    Define Wizard Dialog "LICENSE" (License Agreement)
    Define Wizard Dialog "SELECTFOLDER" (Select Install Folder)
    Define Wizard Dialog "READY" (Ready to Install)

    ! The Wizard Loop displays the dialog screens that the user sees in the installation
    Loop Wizard
    Wizard Auto Break
    If %_SB_DIALOGID% Equals "$SELECTFOLDER$" Then
    Set Variable %SYNCTEST% to InStr(1, %_SB_INSTALLDIR%, "SYNC")
    If %SYNCTEST% Not Equals "0" Then
    Message Box "SYNC not allowed in folder path!" -- "Error"
    Cycle Loop
    End
    End
    End

    Does this help?

    Thanks,
  • 07-14-2005, 03:23 PM
    slimboywynn

    Installation Folder

    Any way I can check to see if the %_SB_INSTALLDIR% contains a word, ie SYNC? I basically want the user to select a folder and if it's not my SYNC folder I dont want the wizard dialog script to move on.

Posting Permissions

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