I do not feel qualified to answer your question, which is why I did not
comment earlier. I am not using heat (or rather I used it to make my first
wxs and then decided to do a lot of editing) and I got the file association
stuff working a few weeks ago, for the first time. I started from a sample
that used ProgId but had issues with that approach. Generally I try to
stick to the one resource per component model, but for me to get it to work
I put the Extension elements as childs of the same component as the target
file. So maybe there is another approach, but here is my code:
"
<Fragment>
<ComponentGroup Id="QD">
<Component Directory="AppDir">
<File KeyPath="yes" Source="$(var.SourceDir)AppDir\App.exe">
<Shortcut Id="StartShortcut" Name="App"
Description="!(loc.ApplicationDescription)" Directory="ShortcutDir"
WorkingDirectory="AppDir" Icon="AppIcon.exe" IconIndex="0" Advertise="yes"/>
<Shortcut Id="DeskShortcut" Name="App"
Description="!(loc.ApplicationDescription)" Directory="DesktopFolder"
WorkingDirectory="AppDir" Icon="QuickdiscIcon.exe" Advertise="yes"/>
</File>
<Extension Id="abc" Advertise="yes">
<Verb Id="open" Command="!(loc.ContextMenuOpen)"
Argument=""%1"" />
<?if 1=0?>
<MIME Advertise="yes" ContentType="quickdisc/qdd" Default="yes" />
<?endif?>
</Extension>
<Extension Id="acc" Advertise="yes">
<Verb Id="open" Command="!(loc.ContextMenuOpen)"
Argument=""%1"" />
</Extension>
</Component>
...other components
</ComponentGroup>
</Fragment>
"
So for me the two file types .abc and .acc are associated with my app and
they invoke self-healing if there is not installed or broken.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Use-a-TargetProperty-in-a-Verb-in-a-ProgId-for-file-association-tp7588039p7588041.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users