Post a reply to the thread: Let user select Drive
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
Will turn www.example.com into [URL]http://www.example.com[/URL].
Re: Let user select Drive Aha, okay. I understand Friedrich
Re: Let user select Drive
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>
Re: Let user select Drive Just curious, why do you have to do this at all <g>? Friedrich
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.
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
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$ ?
Re: Let user select Drive Friedrich
Re: Let user select Drive Please ignore my previous message. <NOW SOLVED> (The % % were missing). Sorry.
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....
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
Forum Rules