How to associate application with existing file types using WiX installer?How to register file types/extensions with a WiX installer?相关。

如果按用户安装,如何将应用程序与现有文件类型相关联?

不允许使用HKLM key

最佳答案

我相信这与每台机器的情况并没有什么不同。对于downmarker(按用户安装),我将其放在安装应用程序可执行文件的组件中:

<!-- associate .md file extension with downmarker -->
<ProgId Id="DownMarker" Icon="downmarker.exe"
    Description="Markdown Document">
    <Extension Id="md" >
       <Verb Id="open" Argument="&quot;%1&quot;"
          TargetFile="downmarker.exe" />
    </Extension>
</ProgId>

或者,您可以查看full wxs file

10-08 08:08
查看更多