I recently found that using the Session Variables %SourceFolder%, %SourceDrive%, and %SourceFilename% in Windows Vista will return a UNC path if the setup is run from a mapped network drive.
Example:
if K: is mapped to \\mypc\desktop
Run K:\Setup.exe:
%SourceDrive% = \\mypc
%SourceFolder% = \\mypc\desktop
%SourceFilename% = \\mypc\desktop\Setup.exe
When running from a local drive in Vista or when running on XP they return the path with the correct drive letter.
Is this the correct functionality in Vista, and is there another way around this?
Thanks,
Craig Booth
Attainment Company, Inc

