Loosing the folder name when selecting a different drive

Got a problem you cannot solve? Try here.
Post Reply
Doron
Posts: 20
Joined: Mon Nov 27, 2006 4:36 pm
Location: USA

Loosing the folder name when selecting a different drive

Post by Doron »

Hi,

I have the following code causing me to loose the folder name if I select a different drive.

Get Folder Location Special->Boot Path Into BootDrive
Set Variable MAIN_PROJECT_NAME to FCG
Set Variable TARGETDIR to $BootDrive$\\$MAIN_PROJECT_NAME$

Now if I have the below code then the folder is kept if I choose a different drive. Do you have any solution for that problem? I need to install the app in a folder like C:\\FCG and not c:\\FCG_Test\\FCG.

Set Variable TARGETDIR to $BootDrive$\\FCG_TEST\\$MAIN_PROJECT_NAME$

Thanks,

Doron
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

The only solution would be to let the end-user choose the target drive only, using a drive browser control (and not allow full control over the folder, using folder browsers).
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply