InstallAware for Windows Installer
 

Convert Path

This command converts a long file name path to a short file name path, or vice versa. Long file name paths may contain spaces and extended characters; short file name paths may not contain either. This command is especially useful when passing command line parameters to external programs. It is best to use short file names because embedded spaces in paths may be interpreted as new parameters, and the program may not recognize the double quote character that generally surrounds long path names. An example for such a program with which short path names should be used is rundll32.exe.

Variable

This variable holds the path to convert. It will be replaced with the updated path after the conversion.

Operation

  • Check Convert to Short Path to convert a long path name to a short path name.
  • Check Convert to Long Path to convert a short path name to a long path name.

 Notes

  • If the original path cannot be found, the command will return an empty string in the variable.
  • If the original path contains environment variables, they will be expanded before processing begins.
  • If the original path contains relative paths, they will be flattened before processing begins.
  • If the original path does not contain a drive letter reference, the setup base folder will be prepended before processing begins.