Discussion:
[WiX-users] LGHT0204 error when string contains '\' - known issue?
Matt Ryan
2009-03-30 15:57:20 UTC
Permalink
Hi,

I'm using WiX version 3.0.4513.0. Our installer allows for a .wxl-
specified installation location using the following tagset:

<String Id="IDS_INSTALLDIR">InstallLocation</String>

where InstallLocation is a relative directory to be used for the
installation path.


I'm getting the following error when running light.exe if I provide an
install location with a backslash in it:

error LGHT0204 : ICE03: Invalid DefaultDir string; Table: Directory,
Column: DefaultDir, Key(s): INSTALLDIR

The tagset in this case looks like this:

<String Id="IDS_INSTALLDIR">dir1\dir2</String>


Maybe I'm blind, but I did look through the issue tracker for other
issues like this and didn't find any. I'm wondering, is this a known
issue? Has it been fixed in a later release? Or is this behavior
intentional - and if so, how should we specify nested directories for
our default installation directory? I'd like to know before I start
digging into the light.exe code.





--
Matt Ryan
Development Lead, Windows Client
***@decho.com
Karl Denning
2009-03-30 16:16:54 UTC
Permalink
This is expected behavior.
Only one directory per Directory table record is permitted. You are trying to specify two.



Hi,

I'm using WiX version 3.0.4513.0. Our installer allows for a .wxl-
specified installation location using the following tagset:

<String Id="IDS_INSTALLDIR">InstallLocation</String>

where InstallLocation is a relative directory to be used for the
installation path.


I'm getting the following error when running light.exe if I provide an
install location with a backslash in it:

error LGHT0204 : ICE03: Invalid DefaultDir string; Table: Directory,
Column: DefaultDir, Key(s): INSTALLDIR

The tagset in this case looks like this:

<String Id="IDS_INSTALLDIR">dir1\dir2</String>


Maybe I'm blind, but I did look through the issue tracker for other
issues like this and didn't find any. I'm wondering, is this a known
issue? Has it been fixed in a later release? Or is this behavior
intentional - and if so, how should we specify nested directories for
our default installation directory? I'd like to know before I start
digging into the light.exe code.





--
Matt Ryan
Development Lead, Windows Client
***@decho.com





------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/LGHT0204-error-when-string-contains-%27%5C%27---known-issue--tp2558030p2558138.html
Sent from the wix-users mailing list archive at Nabble.com.
Loading...