I have a per-machine install.  I've separated the different file pieces into
different fragments/components and the shortcuts also as a separate
component.  I'm getting an

*Error 14 ICE57: Component 'CMP_MenuShortCuts' has both per-user data and a
keypath that can be either per-user or per-machine.*

I've gone around and around on this and can't seem to find an answer that
works searching google.  All I'm trying to do is install a package (that
includes drivers) and a gui front end with shortcuts for all users.  I'm
also trying to follow guide lines by keeping each separate part as a
component.  e.g. Files in one component and shortcuts in another.  I'm sure
I can't be the first one who is trying to do this.  Any help would be much
appreciated.

Thanks,
Bernie

My package looks like this:

<Package Compressed="yes"

  InstallerVersion="301"

  Manufacturer="!(loc.ManufacturerName)"

  Description="!(loc.PackageDescription)"

  InstallScope="perMachine"

  InstallPrivileges="elevated"

  Platform="$(var.Platform)"/>

-----------------------------------------------

My shortcut fragement looks like this:

<DirectoryRef Id="ProgramMenuDir">

<Component Id="CMP_MenuShortCuts" Guid="506B7301-37F8-475B-9B04-xxxxxxxxx">

  <Shortcut Id="ProgramMenuEntry"

      Name="!(loc.ProductName)"

      Description="!(loc.ShortCutGuiDescription)"

      Target="[MyProgramDir]$(var.GuiCoreStateExe)" WorkingDirectory="
INSTALLDIR"

    <Icon Id="Icon.exe" SourceFile="
$(var.GuiBinDirectory)$(var.GuiCoreStateExe)" />

  </Shortcut>

  <RemoveFolder Id="RemoveShortCutDirectory" On="uninstall"/>

  <RegistryValue Root="HKMU" Key="
Software\$(var.ManufactureDirectory)\$(var.ProductNameDirectory)"

     Name="installed" Type="integer" Value="1" KeyPath="yes" />

</Component>

</DirectoryRef>

==============================================================

My Directory structure:

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

  <!-- Program files -->  <Directory Id="ProgramFilesFolder">

    <Directory Id="MyProgramDir" Name="$(var.ProductNameDirectory)" >

      <Directory Id="DriverFolder" Name="Drivers" />

    </Directory>

  </Directory>



  <!-- Start menu (shortcuts) -->

  <Directory Id="ProgramMenuFolder">

    <Directory Id="ProgramMenuDir" Name="$(var.ProductNameDirectory)"/>

  </Directory>

</Directory>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to