View Full Version : Incorrect file/directory/volume label name is not incorrect

07-30-2003, 11:52 AM
I would really appreciate any help I could get here:

I'm writing an install script with Professional 6.31. I have a file group that's dynamically linked to my computer, and its TargetDir is a global variable called gszAutoPilotPath. I have a second file group whose destination directory I intend to be gszAutoPilotPath\Scripts.

What I'm installing is an add-on to a program called AutoPilot. I read the registry to make sure AutoPilot is already installed on the machine and abort the install if it isn't. If the install path is found in the registry, I populate gszAutoPilotPath with it.

I've run it through the debugger and I'm absolutely sure that gszAutoPilotPath contains a valid path, not just visually, but because I call ExistsDir and abort the install if it returns NOTEXISTS!

But when I continue the install, I get this message:

Component: Extra Files
File Group: AutoPilot Root Files
File: <gszAutoPilotPath>\
Error: The filename, directory name, or volume label syntax is incorrect.

What am I doing wrong??? I'd really appreciate any help!!!

Thanks a ton

07-30-2003, 02:33 PM
I think I figured this one out too: It would seem that my global variable gszAutoPilotPath and the user-defined script folder <gszAutoPilotPath> ARE NOT THE SAME THING. I called ComponentSetTarget to set the userdef to the global and it worked.