Invalid default location '<location>' for folder '<name>'

The DefaultLocation property for the referenced folder is not properly formatted. The DefaultLocation property specifies a Windows Installer system folder property that represents a system folder on the target computer. The default for custom folders is [TARGETDIR], which represents the installation directory specified by the user during installation.

The most common cause for this error is mismatched brackets.

To correct this error

  1. Double-click the error in the Task List to go to the referenced folder in the File System Editor.

  2. In the Properties window, select the DefaultLocation property. Select a system folder name from the list, or enter a properly formatted system folder name.

See Also

Tasks

How to: Add a Custom Folder to Target a Predefined Windows Folder

Other Resources

File Installation Management in Deployment

System Folder Properties