Appendix A: Creating a MSHelp2 Combined Collection
link state symbols
- Unvisited
- Focus/Hover
- Visited
- Currently Open
topics
A Help Authoring Guide
Why Create a MSHelp2 Combined Collection?
- You have created numerous MSHelp2 (.HxS) Collections.
- For example, you've created MSHelp2 Collections for an A.P.I., Class Library,
D.L.L. Library and Programmers Guide, all specific to one software product.
- Instead of listing each of these H2 Collections separately in the Visual Studio Help Contents window, we can combine them under one Parent
Node and make each H2 Collection a Child node of that Parent node.
- We then compile and build this new MSHelp2 Collection.
- This will save space in the Visual Studio Help Contents window, and also help categorize your H2 Collections with a specific application.
- The key to accomplishing this is in the Visual Studio Help Integration Wizard 2005 (Page 3 of 4) dialog box, and consists of creating a Parent node
with your H.x.S. collections set as Child nodes.
- In order to create a Combined Help Collection consisting of 2 or more H.x.S. files, and have them listed successfully with a Parent node and subsequent Child nodes
in the Visual Studio 2005 Help Contents Window, please employ the following Step by Step instructions:
Step by Step
- Create an H2_Output folder (preferrably on your C:\ drive).
- Copy and paste all of your H.x.S. Collections specific to this new MSHelp2 Combined Collection into
the H2_Output folder.
- Remove the Build folder containing the MergeModule and M.S.I./Setup.exe folders from each H.x.S. collection.
- Open Visual Studio 2005.
- Open the Help Integration Wizard 2005 from the File > New Project > Other Project Types > Extensibility > Help Integration Wizard.
- Enter the title of your combined help collection in the Name field.
- Make sure the Create Directory for Solution checkbox is checked.
- Click the OK button.
- In the Help Integration Wizard (Page 1 of 4) dialog box:
- Choose the Setup Project radio button.
- In the Target dropdown list, choose Visual Studio 2005 .
- Click the Next button.
- In the Help Integration Wizard (Page 2 of 4) dialog box:
- Click the Add button.
- Navigate to the H2_Output folder which contains your H.x.S. Collection files.
- Select ALL of the H.x.S. files using the Shift key.
- The sequential order of these files is not important now.....we'll fix that in the next step.
- Click the Open button.
- This adds all of the H.x.S. files to the Source Files window.
- Click the Next button.
- In the Help Integration Wizard (Page 3 of 4) dialog box:
- Keep the Plug-in Style radio button selection set to Hierarchical.
- In the Target dropdown list, choose Visual Studio 2005.
- Click the red book icon in the Help Collection T.O.C. window on the left, and enter a title
for your combined help collection.
- This will become the Parent node of your combined collection.
- In the Exclude from T.O.C. window on the right, select the title of your 1st Child node to appear under the Parent node.
- Click the Include button.
- Do the same for each title appearing in the Exclude from T.O.C. window, setting the order of precedence in which they will appear under the Parent node.
- Click on the Plug-in Node Properties icon.
- Edit the name in the text box, eliminating all spaces between words in the name.
- Use underscores or another naming convention.
- Click the Next button.
- In the Help Integration Wizard (Page 4 of 4) dialog box:
- Enter a namespace for your combined help collection.
- Make sure there are no spaces between words in the namespace.
- Click the Finish button.
- This will return you to the Visual Studio 2005 I.D.E., and your pre-builds for the combined help collection will be showing
in the Solution Explorer window.
- In the Visual Studio 2005 Solution Explorer window:
- Right-click the MergeModule pre-build solution.
- Click Build in the menu.
- Verify that the MergeModule build has finished successfully.
- Right-click the M.S.I./Setup.exe pre-build solution.
- Click Build in the menu.
- Verify that the M.S.I./Setup.exe build has finished successfully.
- Save the builds.
- Close Visual Studio 2005.
- Go to your H2_Output folder containing the H.x.S. files, which now contains the combined help collection folder created by the Visual Studio build process.
- Open the new combined help collection folder.
- Open the M.S.I./Setup.exe folder.
- Open the Debug folder.
- Double-click on the Setup.exe package, or right-click on the M.S.I. package and choose Install in the menu.
- Follow the Install wizard process.
- After successfully completing the Install procedure, close all folders.
- Open Visual Studio 2005 and click on the Help Contents tab.
- Your combined help collection will be listed in the Help Contents Window navigation tree.
- Expand the Parent node and you will see your Child nodes listed in the order of precedence you set in the Help Integration Wizard
procedure.
top