Page 1 of 1

Loosing the folder name when selecting a different drive

Posted: Fri Dec 01, 2006 1:24 pm
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

Posted: Fri Dec 01, 2006 4:26 pm
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).