References flow from the Product element down. Follow your references.
There isn't enough below to really know what is wrong.


On Wed, Feb 20, 2013 at 12:20 PM, Marc Beaudry <mbeau...@matrox.com> wrote:

> Hopefully this helps shed some light...
>
> In my Product.wxs I define a directory structure.
>
> In my lib I refer to the directory reference. "DirectoryRef"
>
> The component reference in the feature tag is set in the Product.wxs
>
> Directory Element from Product.wxs
>         <Directory Id="TARGETDIR" Name="SourceDir">
>             <Directory Id='ProgramFilesFolder' Name='PFiles'>
>                 <Directory Id='ManufacturerFolder'
> Name='$(var.UserManufacturerName)'>
>                     <Directory Id="APPLICATIONROOTDIRECTORY"
> Name="$(var.UserProductName)"/>
>                 </Directory>
>             </Directory>
>
>             <!-- Step 1: Define the directory structure to where the items
> are to be located in the start menu -->
>             <Directory Id="ProgramMenuFolder">
>                 <Directory Id="ShortcutsProgramsFolder"
> Name="$(var.UserStartMenuFolder)">
>                     <Directory Id="ShortcutsMenuFolder"
> Name="$(var.UserProductName)"> </Directory>
>                         <Component Id="ApplicationShortcutUninstall"
> Guid="******">
>                             <RemoveFolder Id="ShortcutsProgramsFolder"
> On="uninstall"/>
>                             <RegistryValue Root="HKCU"
> Key="Software\Microsoft\[Manufacturer]\[ProductName]" Name="installed"
> Type="integer" Value="1" KeyPath="yes"/>
>                         </Component>
>                 </Directory>
>             </Directory>
>
>             <Directory Id="DesktopFolder" Name="Desktop" />
>         </Directory>
>
> Snip it from the lib fragment... that I want to copy out in the product.wxs
>         <DirectoryRef Id="ShortcutsMenuFolder">
>             <Component Id="ApplicationDesktopShortcut" Guid="***">
>                 <Condition>DESKTOPSHORTCUT=1</Condition>
>                 <Shortcut Id="desktopShortcut"
>                           Directory="DesktopFolder"
>                           Name="Application Something or other "
>
> Description="$(var.UserStartMenuApplicationDescription)"
>                           Target="[APPLICATIONROOTDIRECTORY]MyBinary.exe"
>                           WorkingDirectory='APPLICATIONROOTDIRECTORY' >
>                     <Icon Id="DesktopIcon.exe"
> SourceFile="SomeIconFile.ico"
> />
>                 </Shortcut>
>                 <RegistryValue Root="HKCU"
> Key="Software\Microsoft\[Manufacturer]\[ProductName]" Name="aaaaaaaaaaaaa "
> Type="integer" Value="1" KeyPath="yes"/>
>             </Component>
>         </DirectoryRef>
>
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: February-20-2013 3:04 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] WixLib not behaving as desired
>
> It all depends on what is in your Fragments and what is referencing what.
> My guess is by moving the Shortcut, you removed the reference to oen or
> more
> Fragments in you .wixlib.
>
>
> On Wed, Feb 20, 2013 at 12:00 PM, Marc Beaudry <mbeau...@matrox.com>
> wrote:
>
> > I have a lib file that contains a bunch of files and a desktop
> > shortcut to one of the binaries.  I then have my (product.wxs) main
> > installation XML file.  My project has a reference to the lib file. It
> > all compiles and links perfectly. (My MSI is perfectly functional at
> > this point)
> >
> >
> >
> > BUT:
> >
> >
> >
> > If I remove the section that contains the info to create the desktop
> > shortcut and move it to the Product.wxs, everything still compiles and
> > links without errors, but the content of my lib file is completely
> > ignored.  My msi goes from 30MB to 900KB.
> >
> >
> >
> > Question: Should I be able to take the shortcut section out of my lib
> > file and put it in my main wxs file?  The reason I want to do this is
> > the binary name installed will always be the same but the name to the
> > desktop shortcut is set later through a variable in a WXI (The
> > contents of the lib remain, but the shortcut name can change depending
> > on who builds the package) file which is referenced in the product.wxs
> file.
> >
> >
> >
> > Hopefully this question is clear enough.
> >
> >
> >
> > Thanks for the Advice
> >
> > Marc
> >
> >
> > ----------------------------------------------------------------------
> > -------- Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics Download AppDynamics Lite
> > for free today:
> > http://p.sf.net/sfu/appdyn_d2d_feb
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
> ----------------------------------------------------------------------------
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for
> free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to