Folks:

            I understand how to use the ProgID for some simple cases, such
as this example:

 

<Component Id="eeeeee" Guid="$(var.Component_GUID)">

            <ProgId  Id="xxxFile" Advertise="yes" Description="desc"
Icon="MyFileIcon.ico">

                        <Extension Id="HPHR"
ContentType="application/x-xxx-phr">

                          <MIME ContentType="application/x-xxx-phr"
Default="yes"/>

                          <Verb Id="view" Argument="-view &quot;%1&quot;"
Command="View" Sequence="1"/>

                          <Verb Id="open" Argument="&quot;%1&quot;"
Command="Open" Sequence="1"/>

                        </Extension>

            </ProgId>

</Component>

 

 

The problem is - how do I structure things if I have multiple components. I
think I've exhausted all the possibilities, and they all seem to fail.

 

Suppose I have TWO components, PROGRAM_A, and PROGRAM_B. and both of these
programs operate on a filetype .MFT.

 

I could do something like

<Component Id=" PROGRAM_A" Guid=".">

            <ProgId  Id="xxxFile" Advertise="yes" Description="desc"
Icon="MyFileIcon.ico">

                        <Extension Id="HPHR"
ContentType="application/x-xxx-phr">

                          <MIME ContentType="application/x-xxx-phr"
Default="yes"/>

                          <Verb Id="view" Argument="-view &quot;%1&quot;"
Command="View" Sequence="1"/>

                        </Extension>

            </ProgId>

</Component>

 

<Component Id=" PROGRAM_B" Guid=".">

            <ProgId  Id="xxxFile" Advertise="yes" Description="desc"
Icon="MyFileIcon.ico">

                        <Extension Id="HPHR"
ContentType="application/x-xxx-phr">

                          <MIME ContentType="application/x-xxx-phr"
Default="yes"/>

                          <Verb Id="edit" Argument="-edit &quot;%1&quot;"
Command="View" Sequence="1"/>

                        </Extension>

            </ProgId>

</Component>

 

This runs into problems with the ProgId being duplicate defined. 

 

 

I've tried bundling the ProgId elements into a THIRD component, and then
using 

 

              <Verb Id="edit" Argument="-edit &quot;%1&quot;" Command="View"
TargetFile=xxx>

            That fails because I cannot have the TargetFile references go
across components.

 

I could simply avoid using the Verb/ProgId/etc elements, and just use the
underlying REGISTRY elements for the parts of the registry I wanted changed,
but I saw ICE warnings in my existing WIX installer that suggested I should
be using these ProgId/etc elements.

 

Any pointers?

 

                        Thanks,

                                    Lewis.

 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to