PS: This is not a WiX limitation. It's a NETFX limitation.  Paths
approaching MAX_PATH (260 characters) are often causes of failures like
this.

On Mon, Nov 14, 2011 at 10:39 AM, John Bergman <
john.berg...@xpedienttechnologies.com> wrote:

> I did it the same way you did.
>
> In my case, I had a directory with files, some were fine, others gave the
> error.  After a bunch of trial and error I figured out that it was a
> path-length issue.  There are quite a few pre-defined paths described In
> the documentation, it is possible that you will find what you are looking
> there, and can use that as a base to go relative from one of those, that
> may reduce your path length.
>
> -----Original Message-----
> From: Sanjay Poria [mailto:sanjay.po...@xanalys.com]
> Sent: Sunday, November 13, 2011 8:35 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] File Element - Source attribute
>
> Thanks for the feedback John. This is a real pain for me. The Wix
> documentation is pretty poor and does not mention any kind of limit.
>
> Can you tell me how you created the full path by concatenating the base
> and relative path. I presume there is some easy way of getting hold of the
> absolute path where the wix build is being run?
>
> Cheers
> sanjay
>
> > -----Original Message-----
> > From: John Bergman [mailto:john.berg...@xpedienttechnologies.com]
> > Sent: 10 November 2011 00:24
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] File Element - Source attribute
> >
> > I've encountered this.  I had to shorten names that that the full path
> > is less than about 240 in order to get past the problems I was having.
> >
> > That means that your current path of your wix file, and append your
> > relative pathing and see how long the resulting string is, maybe you
> > are beyond the limit there somehow...
> >
> > As an alternative, you could define a base path using ?define and
> > concatenate the strings to get an absolute path; I've done that as
> > well...
> >
> > -----Original Message-----
> > From: Sanjay Poria [mailto:sanjay.po...@xanalys.com]
> > Sent: Wednesday, November 09, 2011 6:13 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] File Element - Source attribute
> >
> > Hi,
> >
> > I am hoping someone can help me here. I am defining a component with a
> > file like this:
> >
> > <?define BuildDir = "..\dirname1\dirname2\dirname3"?>
> >
> > <Component Id="cmpName" Guid="*">       <File Id="filName"
> > KeyPath="yes"
> > Source="$(var.BuildDir)/dirX/dirY/dirZ/dirA/rep_accusedcourtdate_1_2.x
> > s lt" /></Component>  I am using the visual studio 10 to do this. When
> > I build the project, I get an error on this component only (I have
> > loads
> > of others that work fine):                     The system cannot find
> > the file
> > '..\dirname1\dirname2\dirname3/dirX/dirY/dirZ/dirA/rep_accusedcourtdat
> > e _1_2.xslt' with type ''. The file definitely exists (other files in
> > the same directory are picked up seem to work fine). My limited
> > testing tells me it's something to do with the length of the file name
> > above (including the path). Strange this is that if I replace the
> > relative path with an absolute one, it works fine. Any ideas what the
> > problem could be?  Are there any (length of a string) type limits?
> > Cheerssanjay
> > ----------------------------------------------------------------------
> > -
> > -------
> > RSA(R) Conference 2012
> > Save $700 by Nov 18
> > Register now
> > http://p.sf.net/sfu/rsa-sfdev2dev1
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to