Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

LGHT0103 error when -b path has a space and guidance in LG0117 is followed. #4361

wixbot opened this Issue Mar 21, 2014 · 5 comments


None yet
2 participants

wixbot commented Mar 21, 2014

When the path used with the -b option is in the from:
-b "\Server\Drive\parentFolder\Folder With_Space"

LGHT0117 is displayed with the advice that the message "C:\Program' cannot contain a quote. Quotes are often accidentally introduced when trying to refer to a directory path with spaces in it, such as "C:\Out Directory". The correct representation for that path is: "C:\Out Directory"

When the path used with the -b option is in the from:
-b \Server\Drive\parentFolder\Folder With_Space\

LGHT0103 is displayed "LGHT0103: The system cannot find the file 'With_Space' with type 'Source'."

Background: I am using the -b option to provide the root of a source tree, and then in the MSI project specifying the remainder of the path to the file in the Source attribute. This seems to result in faster builds in comparison to using preprocessor statements. But I did not find a way to deal with a space in the path.

Originally opened by phogland


wixbot commented Mar 22, 2014

You have to quote paths with spaces. The error message is saying that it found a quote inside the path, which is illegal. The reason is that the command line is escaped, so foo\" turns into foo". The backslash needs to be escaped: foo\\" which is the what the end of the error message is trying to explain.

Originally posted by barnson


wixbot commented Mar 22, 2014

Thank you for the clarification. I realize now that I should have posted this to the user forum first. When I enclose the -b path (which includes a space) with quotes, and also add a backslash in front of the trailing quote to 'escape' it, then it works as you suggest. So I guess this is a non-issue. But conceptually (and when viewing the log message, even on success) this remains confusing because the "path' I provided to -b did not have any embedded quotes, only one set of enclosing quotes, and the solution is to escape only the trialing quote. Strange, but it works for me. Thanks for the help!

Originally posted by phogland


wixbot commented Mar 27, 2014

AssignedTo set to bobarnson
Release changed from v3.8 to v3.9


wixbot commented Mar 29, 2014


Originally posted by barnson


wixbot commented Apr 21, 2014

Originally changed by barnson
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added bug linker labels Dec 20, 2015

@wixbot wixbot added this to the v3.9 milestone Dec 20, 2015

@wixbot wixbot closed this Dec 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment