[wix-users] error LGHT0001: Illegal characters in path.

Farrukh Waheed farrukh1 at gmail.com
Tue Apr 26 00:23:44 PDT 2016


Glad to know you got it.. :)

On 26 April 2016 at 12:14, Magi, Sampattakumar S <
Sampattakumar.Magi at in.unisys.com> wrote:

> Oh my ghosh!!
>
> Blaming myself at this moment :(
>
> Sorry, my apologies.
>
> Our product build has been taking bit time to build (4+ minutes), so I
> pondered over SO questions, where Rob has mentioned about WIX_TEMP
> environment variable which overrides the temp location used by Light as
> intermediate folder.
>
> So created an environment variable called WIX_TEMP = "D:\sam\temp dir"
>
> The mistake was that, I used quotes "" around thinking to cover space
> (temp dir) , which caused all these problems.
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Farrukh Waheed
> Sent: Tuesday, April 26, 2016 11:43 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] error LGHT0001: Illegal characters in path.
>
> Please evaluate all the variables in your code which are containing Paths.
> I usually use Warning preprocessor to see the values being expanding in
> different variables. For instance:
> <?warning MyPath=$(var.ProjA.ProjectDir)?>
>
> would display the Project Directory path of Referenced project ProjA
>
> You can use env instead of var to get values of environment variables i.e.
> $(env.Path).
> See if any path is invalid, or getting extra Quotes etc etc etc...
>
> Sorry for hard work, but it makes us to learn things :)
>
>
> On 26 April 2016 at 11:05, Magi, Sampattakumar S <
> Sampattakumar.Magi at in.unisys.com> wrote:
>
> > Thanks for the quick response Farrukh.
> >
> > Candle goes well but again light says same error.
> >
> > :(
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> Behalf
> > Of Farrukh Waheed
> > Sent: Tuesday, April 26, 2016 11:11 AM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Subject: Re: [wix-users] error LGHT0001: Illegal characters in path.
> >
> > Try to build your wix outside of VS/MSbuild. E.g. Open Command Prompt in
> > Admin mode. and issue following commands (do correct folders accordingly,
> > and set any environment variables before calling these.).
> > "%Wix%bin\Candle.exe" D:\MyProjects\TestSetup\TestSetup.wxs -out
> > "D:\MyProjects\TestSetup\TestSetup.wixobj"
> > "%Wix%bin\Light.exe"  D:\MyProjects\TestSetup\TestSetup.wixobj -out
> > "D:\MyProjects\TestSetup\TestSetup.msi"
> >
> > for command line details, you can always type
> > "%Wix%bin\Candle.exe" /?
> > "%Wix%bin\Light.exe" /?
> >
> > Hope this helps
> >
> > On 26 April 2016 at 07:22, sampat magi <ssmcs060 at gmail.com> wrote:
> >
> > > No luck Farrukh. Still it's same issue.
> > > Completely stuck at this moment. It has been working very well but not
> > sure
> > > how come it got corrupted.
> > > Have to rely on VM to work on the WiX setup now. Until this gets
> > resolved.
> > > On Apr 25, 2016 4:59 PM, "Magi, Sampattakumar S" <
> > > Sampattakumar.Magi at in.unisys.com> wrote:
> > >
> > > > Ok, am going to try it out.
> > > > Thanks a lot for response. I will let the forum know if I can get rid
> > off
> > > > this error.
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > > Behalf
> > > > Of Farrukh Waheed
> > > > Sent: Monday, April 25, 2016 3:58 PM
> > > > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > > > Subject: Re: [wix-users] error LGHT0001: Illegal characters in path.
> > > >
> > > > There might be some issue with your environment on your laptop.
> > > > I've found 2 threads, might be useful in this context:
> > > >
> > > >    -
> > > >
> > > >
> > >
> >
> https://social.msdn.microsoft.com/Forums/vstudio/en-US/f7c4b6f6-29b2-417a-be68-2c45e232981b/illegal-characters-in-path?forum=tfsbuild
> > > >    -
> > > >
> > > >
> > >
> >
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-3-6-and-System-ArgumentException-quot-illegal-characters-in-path-quot-during-build-td6975562.html
> > > >
> > > > Just for experiment, uninstall wix 3.10 and install wix 9.x and see
> if
> > it
> > > > works with msbuild there...
> > > > Hope it helps
> > > >
> > > >
> > > >
> > > > On 25 April 2016 at 14:10, Magi, Sampattakumar S <
> > > > Sampattakumar.Magi at in.unisys.com> wrote:
> > > >
> > > > > User :
> > > > >
> > > > > TEMP =  C:\Users\magisams\AppData\Local\Temp (Earlier it was
> > > > > %userprofile%appdata\local\temp, I replaced the full path manually
> to
> > > see
> > > > > if error goes)
> > > > > TMP = C:\Users\magisams\AppData\Local\Temp
> > > > >
> > > > > System  :
> > > > > TEMP= %SystemRoot%\TEMP
> > > > > TMP = %SystemRoot%\TEMP
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > > > Behalf
> > > > > Of Rob Mensching
> > > > > Sent: Monday, April 25, 2016 2:36 PM
> > > > > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org
> >
> > > > > Subject: Re: [wix-users] error LGHT0001: Illegal characters in
> path.
> > > > >
> > > > > What's your temp folder path?
> > > > >
> > > > > _____________________________________________________________
> > > > >  Short replies here. Complete answers over there:
> > > > > http://www.firegiant.com/
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > > > Behalf
> > > > > Of Magi, Sampattakumar S
> > > > > Sent: Monday, April 25, 2016 2:04 AM
> > > > > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org
> >
> > > > > Subject: Re: [wix-users] error LGHT0001: Illegal characters in
> path.
> > > > >
> > > > > Excerpt from the msbuild log set to diagnostic
> > > > >                 Windows Installer XML Toolset Linker version
> > > 3.10.2.2516
> > > > >                 Copyright (c) Outercurve Foundation. All rights
> > > reserved.
> > > > > light.exe(0,0): error LGHT0001: Illegal characters in path.
> > > > >                 Exception Type: System.ArgumentException
> > > > >                 Stack Trace:
> > > > >                    at System.IO.Path.CheckInvalidPathChars(String
> > path,
> > > > > Boolean checkAdditional)
> > > > >                    at System.IO.Path.NormalizePath(String path,
> > Boolean
> > > > > fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
> > > > >                    at System.IO.Path.GetFullPathInternal(String
> path)
> > > > >                    at System.IO.Path.GetFullPath(String path)
> > > > >                    at
> > > > > System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
> > > > >                    at
> > > > >
> > > >
> > >
> >
> Microsoft.Tools.WindowsInstallerXml.WixBinder.set_TempFilesLocation(String
> > > > > value)
> > > > >
> > > > >
> ____________________________________________________________________
> > > > > WiX Toolset Users Mailing List provided by FireGiant
> > > > > http://www.firegiant.com/
> > > > >
> > > > >
> ____________________________________________________________________
> > > > > WiX Toolset Users Mailing List provided by FireGiant
> > > > > http://www.firegiant.com/
> > > > >
> > > >
> > > > ____________________________________________________________________
> > > > WiX Toolset Users Mailing List provided by FireGiant
> > > > http://www.firegiant.com/
> > > >
> > > > ____________________________________________________________________
> > > > WiX Toolset Users Mailing List provided by FireGiant
> > > > http://www.firegiant.com/
> > > >
> > >
> > > ____________________________________________________________________
> > > WiX Toolset Users Mailing List provided by FireGiant
> > > http://www.firegiant.com/
> > >
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list