The first error tells you what you must do.

"There may only be a single root directory per product or module and its Id 
attribute value must be 'TARGETDIR' and its Name attribute value must be 
'SourceDir'."

I assume you already have one of these otherwise you would not be able to 
install any files:

<Directory Id="TARGETDIR" Name="SourceDir">
    ....
</Directory>

You have two options:

1) Add the <Directory/> declaration for DesktopFolder in the existing TARGETDIR 
<Directory/>

<Directory Id="TARGETDIR" Name="SourceDir">
    ....
    <Directory Id="DesktopFolder" />
</Directory>

2) Add the <Directory/> declaration for DesktopFolder under a <DirectoryRef/> 
for TARGETDIR

<DirectoryRef Id="TARGETDIR">
    <Directory Id="DesktopFolder" />
</DirectoryRef>

All errors I see already tell you what to do... just read them more carefully.

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: Kevin Burton [mailto:kev...@buyseasons.com]
> Sent: Wednesday, January 26, 2011 10:09 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Where is DesktopFolder?
> 
> When I change the DirectoryRef to Directory I get two errors:
> 
> Directory with Id 'DesktopFolder' is not a valid root directory.  There may 
> only
> be a single root directory per product or module and its Id attribute value
> must be 'TARGETDIR' and its Name attribute value must be 'SourceDir'.
> 
> The Directory element requires the Name attribute because there is no
> parent Directory element.
> 
> -----Original Message-----
> From: Pally Sandher [mailto:pally.sand...@iesve.com]
> Sent: Wednesday, January 26, 2011 10:06 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Where is DesktopFolder?
> 
> Yes you do have a directory with Id="DesktopFolder".
> 
> <DirectoryRef Id="DesktopFolder">
> 
> A cursory search for Id="DesktopFolder" found that in seconds in your code.
> That should be Directory not DirectoryRef which is what the error is telling
> you. You're trying to reference something which doesn't exist as far as your
> code is concerned.
> 
> I would suggest looking into contracting out your installation development if
> basic things like this are tripping you up to the extent that you're asking 
> the
> list users for help.
> 
> Palbinder Sandher
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500
> F: +44 (0) 141 945 8501
> 
> http://www.iesve.com
> **Design, Simulate + Innovate with the <Virtual Environment>** Integrated
> Environmental Solutions Limited. Registered in Scotland No.
> SC151456
> Registered Office - Helix Building, West Of Scotland Science Park, Glasgow
> G20 0SP Email Disclaimer
> 
> 
> -----Original Message-----
> From: Kevin Burton [mailto:kev...@buyseasons.com]
> Sent: 26 January 2011 15:30
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Where is DesktopFolder?
> 
> No, I don't have a directory with Id="DesktopFolder". I have included the WiX
> source that I am using below (sorry about the length but I it looks like I
> cannot attached a file) The applicable source is toward the end.
> 
> 
> 
> I still get the error:
> 
> 
> 
> C:\Projects\BuySeasonsIT\Source\Brain\Trunk\BuyseasonsServices\BsiServi
> c
> es\Product.wxs(318,0): error LGHT0094: Unresolved reference to symbol
> 'Directory:DesktopFolder' in section 'Product:{8D768A77-71B5-432F-86F2-
> BCD197617A79}'.
> 
> 
> 
> Thank you.
> 
> 
> 
> Kevin
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: Wednesday, January 26, 2011 1:00 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Where is DesktopFolder?
> 
> 
> 
> DesktopFolder has been part of the Windows Installer as long as I can
> remember. I don't htink this is the problem.
> 
> 
> 
> Kevin, do you have a Directory with Id="DesktopFolder"?
> 
> 
> 
> On Tue, Jan 25, 2011 at 3:38 PM, Chris Lord
> <chris.l...@atterotech.com<mailto:chris.l...@atterotech.com>>wrote:
> 
> 
> 
> > Kevin,
> 
> >
> 
> > What version of Windows Installer that is installed on your machine
> 
> > has absolutely no effect when you are building the MSI.  This is not
> 
> > the version you are targeting but what your machine happens to be
> using.
> 
> >
> 
> > The reason I asked about what version you are targeting is that one
> 
> > possible reason for the problem is that WiX is trying to create an
> 
> > Installer based around features for an earlier version of Windows
> 
> > Installer.  If thats the case, the DesktopFolder feature won't exist
> 
> > as it was introduced in Windows Installer 4 and hence the error.
> 
> >
> 
> > Unless this installer is purely for you, everyone else who may install
> 
> > your MSI may not have your version of OS and your version of Windows
> 
> > Installer and if a users PC has a version of Windows installer that
> 
> > doesn't support your feature then that will spell trouble.
> 
> >
> 
> > Your MSI should target a version of windows installer that supports
> 
> > the feature you are using that means setting the InstallerVersion key
> 
> > which is part of your package data in WiX.
> 
> >
> 
> > For version 4, it needs to be at least 400.  Be mindful though that
> 
> > newer versions of Windows Installer may not be supported on older
> 
> > operating systems so by setting it to a higher version, you may be
> 
> > limit the OS's the MSI can be installed upon.
> 
> >
> 
> > Chris
> 
> >
> 
> > On 01/25/2011 05:32 PM, Kevin Burton wrote:
> 
> > > If I invoke msiexec it says that I am using Windows (r) Installer. V
> 
> > 5.0.7600.16385.
> 
> > >
> 
> > > Kevin Burton
> 
> > > Senior Software Engineer
> 
> > > BUYSEASONS
> 
> > > 262-901-2000 Office
> 
> > > 262-901-2312 Fax
> 
> > > kev...@buyseasons.com<mailto:kev...@buyseasons.com>
> 
> > >
> 
> > >
> 
> > > -----Original Message-----
> 
> > > From: Chris Lord [mailto:chris.l...@atterotech.com]
> 
> > > Sent: Tuesday, January 25, 2011 2:50 PM
> 
> > > To: General discussion for Windows Installer XML toolset.
> 
> > > Subject: Re: [WiX-users] Where is DesktopFolder?
> 
> > >
> 
> > > Kevin
> 
> > >
> 
> > > What version of windows installer are you targeting.  Looks like
> 
> > > this
> 
> > parameter is only available in Windows Installer 4 and onwards.
> 
> > >
> 
> > > http://msdn.microsoft.com/en-us/library/aa368276%28v=vs.85%29.aspx
> 
> > >
> 
> > > Chris
> 
> > >
> 
> > > On 01/25/2011 03:34 PM, Kevin Burton wrote:
> 
> > >> I am trying to reference DesktopFolder and I get the error:
> 
> > >>
> 
> > >>
> 
> >
> C:\Projects\BuySeasonsIT\Source\Brain\Trunk\BuyseasonsServices\BsiServi
> c
> es\Product.wxs(318,0):
> 
> > error LGHT0094: Unresolved reference to symbol
> 
> > 'Directory:DesktopFolder' in section
> 'Product:{8D768A77-71B5-432F-86F2-BCD197617A79}'.
> 
> > >>
> 
> > >> Any idea on how to use the desktop?
> 
> > >>
> 
> > >> Kevin
> 
> > >> -------------------------------------------------------------------
> 
> > >> ---
> 
> > >> -------- Special Offer-- Download ArcSight Logger for FREE (a $49
> 
> > >> USD value)!
> 
> > >> Finally, a world-class log management solution at an even better
> 
> > price-free!
> 
> > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> 
> > >> February 28th, so secure your free ArcSight Logger TODAY!
> 
> > >> http://p.sf.net/sfu/arcsight-sfd2d
> 
> > >> _______________________________________________
> 
> > >> WiX-users mailing list
> 
> > >>
> WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
> 
> > >> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> > >
> 
> > ----------------------------------------------------------------------
> 
> > --------
> 
> > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> 
> > > Finally, a world-class log management solution at an even better
> 
> > price-free!
> 
> > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> 
> > > February
> 
> > 28th, so secure your free ArcSight Logger TODAY!
> 
> > > http://p.sf.net/sfu/arcsight-sfd2d
> 
> > > _______________________________________________
> 
> > > WiX-users mailing list
> 
> > >
> WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
> 
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> > >
> 
> > >
> 
> > ----------------------------------------------------------------------
> 
> > --------
> 
> > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> 
> > > Finally, a world-class log management solution at an even better
> 
> > price-free!
> 
> > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> 
> > > February 28th, so secure your free ArcSight Logger TODAY!
> 
> > > http://p.sf.net/sfu/arcsight-sfd2d
> 
> > > _______________________________________________
> 
> > > WiX-users mailing list
> 
> > >
> WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
> 
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> >
> 
> >
> 
> > ----------------------------------------------------------------------
> 
> > -------- Special Offer-- Download ArcSight Logger for FREE (a $49 USD
> 
> > value)!
> 
> > Finally, a world-class log management solution at an even better
> 
> > price-free!
> 
> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> 
> > February 28th, so secure your free ArcSight Logger TODAY!
> 
> > http://p.sf.net/sfu/arcsight-sfd2d
> 
> > _______________________________________________
> 
> > WiX-users mailing list
> 
> >
> WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
> 
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> >
> 
> >
> 
> 
> 
> 
> 
> --
> 
> virtually, Rob Mensching - http://RobMensching.com LLC
> 
> ------------------------------------------------------------------------
> ------
> 
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> 
> Finally, a world-class log management solution at an even better price-free!
> 
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> 
> http://p.sf.net/sfu/arcsight-sfd2d
> 
> _______________________________________________
> 
> WiX-users mailing list
> 
> WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
> 
> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------
> ------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to