需要在 MS Help 2.0 中注册帮助的 WIX 脚本的工作示例

发布于 2024-09-16 16:36:48 字数 106 浏览 2 评论 0原文

有人可以举一个 WIX 脚本的示例来在 Visual Studio 帮助中注册自定义帮助吗?我搜索了一些教程,但我发现的唯一的就是 VS 架构参考。我尝试做的一切都没有成功。我用的是WIX 3.0。

Can anybody give an example of WIX script to register custom help in visual studio help? I,ve searched for some tutorial, but the only thing that I found was VS schema reference. Everything I tried to do did not work. I use WIX 3.0.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人哭 2024-09-23 16:36:48

我希望这个答案还不算太晚。

您将需要:

  • 您的帮助集合(以及一些详细信息,例如内部集合名称)。
  • Orca
  • 一些合并模块包含在Visual Studio SDK

您要做的第一件事是创建将保存您的帮助集合的 ​​Wix 代码。

<DirectoryRef Id="MyHelpDirectory">
  <Component Id="MyHelpCollection" Guid="INSERT_GUID_HERE">
    <File Id="MyHelpCollection.HxS" Source="..\MyHelpCollection.HxS" KeyPath="yes" />
    <File Id="MyHelpCollection.HxA" Source="..\MyHelpCollection.HxA" />  
    <File Id="MyHelpCollection.HxC" Source="..\MyHelpCollection.HxC" />
    <File Id="MyHelpCollection.HxT" Source="..\MyHelpCollection.HxT" /> 
    <File Id="MyHelpCollectionFIndex.HxK" Source="..\MyHelpCollectionFIndex.HxK" />
    <File Id="MyHelpCollectionIndex.HxK"  Source="..\MyHelpCollectionIndex.HxK" />
    <File Id="MyHelpCollectionKIndex.HxK" Source="..\MyHelpCollectionKIndex.HxK" />
    <File Id="MyHelpCollectionNamedUrlIndex.HxK" Source="..\MyHelpCollectionNamedUrlIndex.HxK" />
  </Component>
</DirectoryRef>

接下来,您要复制 MSHelp2_RegTables_RTL_-------.msm 合并模块。 (可以在 C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\MSHelp2 中找到)并使用 Orca 打开它。

此处您要编辑合并模块中的 HelpNamespace 表。您将要使用以下信息填充记录:

NamespaceKey    = Company.MyHelp.1033  (You can get this from the person who created your help collection.)
NamespaceName   = Company.MyHelp.1033
File_Collection = MyHelpCollection.HxC (Note that this is the Id attribute of the HxC file declared in the Wix code above.)
Description = My Help Collection

现在您要编辑 HelpFile 表:

HelpFileKey  = MyHelp (Taken from the NamespaceKey above.)
HelpFileName = MyHelp
LangID       = 1033
File_HxS     = MyHelpCollection.HxS (Note that this is the Id attribute of the HxS file declared in the Wix code above.)
File_HxI     = MyHelpCollection.HxI (This is the Id attribute of the HxI file if your collection uses an HxI file.  The collections I use do not use HxI files.)
File_HxQ     = N/A
File_HxR     = N/A
File_Samples = N/A

接下来您要编辑 HelpFileToNamespace 表:

HelpFile      = MyHelp (Note that this must match the value defined in the HelpFile table above.)
HelpNamespace = Company.MyHelp.1033 (Note that this must match the value defined in the HelpNamespace table above.)

最后,您想要编辑 HelpPlugin 表:

HelpNamespace_ = Company.MyHelp.1033  (Once again, keep this consistent)
HelpNamespace_Parent = MS_VSIPCC_v80  (For VS2005)
                     = MS.VSIPCC.v90  (For VS2008)
File_HxT       = MyHelpCollection.HxT (Id attribute for HxT file from Wix)
File_HxA       = MyHelpCollection.HxA (Id attribute for HxA file from Wix)
File_ParentHxT = FL_vsipcc_hxt_86880________.3643236F_FC70_11D3_A536_0090278A1BB8 (For VS2005)
               = FL_vsipcc_hxt_86880_86880_cn_ln.3643236F_FC70_11D3_A536_0090278A1BB8.48273237_1399_45CF_801C_338E1AB00E90 (For VS2008)

您现在可以保存 MSHelp2_RegTables_RTL__--------.msm 合并模块的副本。将其重命名为 MyHelpCollection.msm 之类的名称可能是个好主意。

现在,除了您所针对的 VS 版本的 VSIP 合并模块之外,您只需在 wix 项目中包含此合并模块:

<Merge Id="MyHelpCollectionMerge"
       Language="1033"
       Disk="1"
       SourceFile="PATH_TO_THE\MyHelpCollection.msm" />

<!-- For VS2005 -->
<Merge Id="VS2005VSIPMerge"
       Language="1033"
       Disk="1"
       SourceFile="C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\VS_2005\VSIPCC_Collection_Files_RTL_---_---.msm" />

<!-- For VS2008 -->
<Merge Id="VS2008VSIPMerge"
       Language="1033"
       Disk="1"
       SourceFile="C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\VS_2008\VSIPCC_Collection_Files_RTL_---_---.msm" />

改编自 MSDN 演练

I hope this answer is not too late.

You're going to need:

  • Your help collection (and some details, such as the internal collection name).
  • Orca
  • Some merge modules included as part of the Visual Studio SDK

First thing you want to do is create the Wix code that will hold your help collection.

<DirectoryRef Id="MyHelpDirectory">
  <Component Id="MyHelpCollection" Guid="INSERT_GUID_HERE">
    <File Id="MyHelpCollection.HxS" Source="..\MyHelpCollection.HxS" KeyPath="yes" />
    <File Id="MyHelpCollection.HxA" Source="..\MyHelpCollection.HxA" />  
    <File Id="MyHelpCollection.HxC" Source="..\MyHelpCollection.HxC" />
    <File Id="MyHelpCollection.HxT" Source="..\MyHelpCollection.HxT" /> 
    <File Id="MyHelpCollectionFIndex.HxK" Source="..\MyHelpCollectionFIndex.HxK" />
    <File Id="MyHelpCollectionIndex.HxK"  Source="..\MyHelpCollectionIndex.HxK" />
    <File Id="MyHelpCollectionKIndex.HxK" Source="..\MyHelpCollectionKIndex.HxK" />
    <File Id="MyHelpCollectionNamedUrlIndex.HxK" Source="..\MyHelpCollectionNamedUrlIndex.HxK" />
  </Component>
</DirectoryRef>

Next, you want to make a copy of the MSHelp2_RegTables_RTL_---_---.msm merge module. (It can be found at C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\MSHelp2) and open it with Orca.

Here you want to edit the HelpNamespace table in the merge module. You're going to want to fill a record with the following information:

NamespaceKey    = Company.MyHelp.1033  (You can get this from the person who created your help collection.)
NamespaceName   = Company.MyHelp.1033
File_Collection = MyHelpCollection.HxC (Note that this is the Id attribute of the HxC file declared in the Wix code above.)
Description = My Help Collection

Now you want to edit the HelpFile table:

HelpFileKey  = MyHelp (Taken from the NamespaceKey above.)
HelpFileName = MyHelp
LangID       = 1033
File_HxS     = MyHelpCollection.HxS (Note that this is the Id attribute of the HxS file declared in the Wix code above.)
File_HxI     = MyHelpCollection.HxI (This is the Id attribute of the HxI file if your collection uses an HxI file.  The collections I use do not use HxI files.)
File_HxQ     = N/A
File_HxR     = N/A
File_Samples = N/A

Next you want to edit the HelpFileToNamespace table:

HelpFile      = MyHelp (Note that this must match the value defined in the HelpFile table above.)
HelpNamespace = Company.MyHelp.1033 (Note that this must match the value defined in the HelpNamespace table above.)

Finally, you want to edit the HelpPlugin table:

HelpNamespace_ = Company.MyHelp.1033  (Once again, keep this consistent)
HelpNamespace_Parent = MS_VSIPCC_v80  (For VS2005)
                     = MS.VSIPCC.v90  (For VS2008)
File_HxT       = MyHelpCollection.HxT (Id attribute for HxT file from Wix)
File_HxA       = MyHelpCollection.HxA (Id attribute for HxA file from Wix)
File_ParentHxT = FL_vsipcc_hxt_86880________.3643236F_FC70_11D3_A536_0090278A1BB8 (For VS2005)
               = FL_vsipcc_hxt_86880_86880_cn_ln.3643236F_FC70_11D3_A536_0090278A1BB8.48273237_1399_45CF_801C_338E1AB00E90 (For VS2008)

You can now save your copy of the MSHelp2_RegTables_RTL_---_---.msm merge module. It's probably a good idea to rename it to something like MyHelpCollection.msm.

Now you just have to include this merge module in your wix project, in addition to the VSIP merge module for the version of VS you're targeting:

<Merge Id="MyHelpCollectionMerge"
       Language="1033"
       Disk="1"
       SourceFile="PATH_TO_THE\MyHelpCollection.msm" />

<!-- For VS2005 -->
<Merge Id="VS2005VSIPMerge"
       Language="1033"
       Disk="1"
       SourceFile="C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\VS_2005\VSIPCC_Collection_Files_RTL_---_---.msm" />

<!-- For VS2008 -->
<Merge Id="VS2008VSIPMerge"
       Language="1033"
       Disk="1"
       SourceFile="C:\Program Files\Microsoft Visual Studio 2008 SDK\HelpIntegrationWizard\VS_2008\VSIPCC_Collection_Files_RTL_---_---.msm" />

Adapted from MSDN Walkthrough

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文