Reply to Thread

Post a reply to the thread: Let user select Drive

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)

  • 06-11-2012, 11:52 PM
    linder

    Re: Let user select Drive

    Aha, okay. I understand

    Friedrich
  • 06-11-2012, 01:40 PM
    Chris

    Re: Let user select Drive

    Historic reasons. Old installer would only install onto drive letter. Windows7 doesn't like anyone sharing the root directory of a drive. Quick fix was to share a folder and then map it as a drive letter. Manuals written describing this. My installation looks for existing app and if found offers to Update it rather than install new. So to start with I am just recreating all the installations using SetUpBuilder. THEN I will look at redesigning the whole thing.
    I bet you are sorry you asked <g>
  • 06-11-2012, 05:37 AM
    linder

    Re: Let user select Drive

    Just curious, why do you have to do this at all <g>?

    Friedrich
  • 06-11-2012, 05:27 AM
    Chris

    Re: Let user select Drive

    Here is what I have done so far.
    If drive is REMOTE then compare its FREE SPACE with the FREE SPACE on Drive C and Drive D. And if SPACE is equal, then I assume the remote drive is on local PC.

    Before you say it, yes I know this is horrible.
  • 06-11-2012, 05:13 AM
    linder

    Re: Let user select Drive

    First of all, please read the following (so you are prepared if your mapped drive scenario causes problems):

    http://www.lindersoft.com/forums/showthread.php?t=31410

    Unfortunately, I don't know any simple way to check if a remote drive is located on the local machine.

    Friedrich
  • 06-11-2012, 04:52 AM
    Chris

    Re: Let user select Drive

    This (hopefully) is final question on this subject.

    If I share a folder on my local hard drive and then map it as a drive letter, GET SYSTEM INFO will show this as $DRIVE_REMOTE$

    So to allow user to choose install onto this mapped drive (I have reason :-( or onto local hard drive root, I have to let them choose from drive types
    $DRIVE_FIXED$ AND $DRIVE_REMOTE$.

    Question: Is there any simple way to check if this Remote drive (mapped drive) is actually located on the local PC. And, if the remote drive is a $DRIVE_FIXED$ ?
  • 06-10-2012, 11:43 PM
    linder

    Re: Let user select Drive



    Friedrich
  • 06-10-2012, 11:41 AM
    Chris

    Re: Let user select Drive

    Please ignore my previous message.
    <NOW SOLVED>

    (The % % were missing). Sorry.
  • 06-10-2012, 11:31 AM
    Chris

    Re: Let user select Drive

    Thank you. Your example works.

    I had done similar, getting all drives into %ALL% and user input into %U%
    And then show a message box with: Value of ALL = %ALL% >>>>> shows A:|C:|D:|E:
    Value of U = %U% >>>>> shows C

    But If %ALL% Contains %U% Then
    does not work. ie. it think ALL does not contain C.

    Since my script appears identical to yours, I am still puzzling why yours works and mine does not....
  • 06-10-2012, 07:41 AM
    linder

    Re: Let user select Drive

    Enumerate Disk Drives—Fills a list with strings that specify valid drives in the system.

    That means the variable holds all (known) available drives (mapped drives, USB, etc.).

    Here is a simple demo:

    www.lindersoft.com/projects/Drives.zip

    It 1.) displays all available drives in a combo box and 2.) lets the user enter a drive letter. It then checks if the entered drive letter is in the list of available drives (not related to the selected drive from the combo in this example).

    Friedrich
This thread has more than 10 replies. Click here to review the whole thread.

Posting Permissions

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