Results 1 to 3 of 3

Thread: Installing to Desktop Bad

  1. #1

    Default Installing to Desktop Bad

    I don't know why, but some people just insist on installing the program
    into the desktop folder. Is there a way I can prevent that. I give them
    an option to change the folder, but after that, I want to check to see
    that 'desktop' is not in the path.. and if it is, circle back to the
    prompt that asks where to install it with my original default.

    What would be the best way to handle this?
    Thanks,

    --
    Ray Rippey
    VMT Software

  2. #2

    Default Re: Installing to Desktop Bad

    Try something like this

    ! The Wizard Loop displays the dialog screens that the user sees in the
    installation
    Set Variable %_INSTALL_ERROR% to "0"
    Loop Wizard (Abort Dialog Active)
    If %_SB_INSTALLDIR% Contains "%_CSIDL_PROGRAM_FILES%" Then
    Set Variable %_INSTALL_ERROR% to "1"
    End
    If %_SB_INSTALLDIR% Contains "%_CSIDL_DESKTOP%" Then
    Set Variable %_INSTALL_ERROR% to "1"
    End
    If %_SB_INSTALLDIR% Contains "%_CSIDL_PERSONAL%" Then
    Set Variable %_INSTALL_ERROR% to "1"
    End
    If %_SB_INSTALLDIR% Contains "%_CSIDL_APPDATA%" Then
    Set Variable %_INSTALL_ERROR% to "1"
    End

    If %_INSTALL_ERROR% Equals "1" Then
    Set Variable %_INSTALL_ERROR% to "0"
    Display Message Box ("Stellar kan ikke installeres i denne
    mappe\n\n", "Vælg en anden mappe")
    Set Variable %_SB_INSTALLDIR% to "[INSTALLDIR]"
    Cycle Loop
    End
    End



    /Michael

  3. #3

    Default Re: Installing to Desktop Bad

    Thanks.. I'll give it a try.
    Ray

Thread Information

Users Browsing this Thread

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

Posting Permissions

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