In article <[EMAIL PROTECTED]>,
    <[EMAIL PROTECTED]>  writes:

> So I have a component (in a separate fragment) that installs a file and
> adds a shortcut on the Program Menu. That component is used in 2
> features.  However, when I open the  compiled msi file in Orca and look
> at the Shortcut Table, only ONE feature is listed as the target (what it
> looks like is that it is the last feature to include the component). So
> what happens is that if the first feature is selected, BUT NOT the
> second, the files get installed but the shortcut does not.

This is a consequence of the standard schema and the way the Shortcut
table associates a shortcut with a feature.  The Target column can
contain only a single feature name and there's no way to associate a
single row in the shortcut table with more than one feature.

A similar problem exists when using the Class table and COM objects.

> What I had to do to rectify this is to create two additional components
> that install the same shortcut - One that creates the shortcut for the
> first feature. And, one that creates the same shortcut for the second
> feature.

That's one way to solve the problem; what I've done in the past is
reorganize my feature forest so that the necessary feature associated
with the shortcut was always installed when either of the two
dependent features was installed.  I never liked that solution,
though.  It always felt hacky.  I would prefer for the schema to be
enhanced to support multiple features for COM objects and shortcuts,
but that hasn't happened.

> 1.       Is the a bug or just the way it works?

Its a consequence of the schema; its just the way it works.

> 2.       Is this the best way to solve the problem?

I don't see a problem with what you've done, but I haven't tried it or
tested it.  Did you run the ICE suite and ensure that your solution
didn't generate new ICE errors or warnings?
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to