Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Today I have a guest post from my good friend and co-worker in the Help Viewer team, Malcolm Dickson. Malcolm describes how you can create a 'local' means of installing content for scenarios behind firewalls or where there is no Internet connectivity. It still requires the ability to download content as the initial starting point, but allows you to create your own install script from downloaded content. Send your comments to hlpfdbk@microsoft.com!
================================
This is a very simple and quick tutorial for creating a Help Viewer 2.0 MSHA. The MSHA is an XML file that describes a set of cabs. Help Viewer 2.0 can read the MSHA to obtain a list of content (the .CABs) available for local installation.
This is only a primer describing the very basic XML schema for the Help Viewer 2.0. There are additional elements which can be contained within the MSHA which this primer does not describe. For further information, reference the Help Viewer SDK (scheduled release date is TBD).
Note that there is an example implementation below this brief overview and sample HelpContentSetup.msha.
The name of the MSHA, for the purposes of this primer, must be HelpContentSetup.msha. The reason for this is that by default (the default installation), when looking for content on a local resource (local drive or folder) Help Viewer 2.0 looks for a file named HelpContentSetup.msha. HelpContentSetup.msha (example below) should contain a list of the cabs available. An easy implementation is to simply download the desired cabs to a folder, create an HelpContentSetup.msha (modified version of the below) and save that MSHA to the same folder that contains the downloaded .CABs. For each CAB, there should be a <div
class="package">…</div> (see example below).
One last note – in the implementation example below, we have included the branding package cab. This is critical to include in order to get the needed Visual Studio content rendering elements and content behaviors.
Sample HelpContentSetup.msha file (replace “cab name 1” and “cab name 2” etc. with the file names of the downloaded cabs):
<html xmlns="https://www.w3.org/1999/xhtml">
<head />
<body class="vendor-book">
<div class="details">
<span class="vendor">Microsoft</span>
<span class="locale">en-us</span>
<span class="product">Microsoft Help Content</span>
<span class="name">Microsoft Help Content</span>
</div>
<div class="package-list">
<div class="package">
<span class="name">cab name 1</span>
<span class="deployed">False</span>
<a class="current-link" href="cab name 1.cab">cab name 1.cab</a>
</div>
<div class="package">
<span class="name">cab name 2</span>
<span class="deployed">False</span>
<a class="current-link" href="cab name 2.cab">cab name 2.cab</a>
</div>
</div>
</body>
</html>
Example Implementation:
<html xmlns="https://www.w3.org/1999/xhtml">
<head />
<body class="vendor-book">
<div class="details">
<span class="vendor">Microsoft</span>
<span class="locale">en-us</span>
<span class="product">Microsoft Help Content</span>
<span class="name">Microsoft Help Content</span>
</div>
<div class="package-list">
<div class="package">
<span class="name">v2visual_studio_2011_fundamentals_b906_vs_110_en-us_1</span>
<span class="deployed">False</span>
<a class="current-link" href="v2visual_studio_2011_fundamentals_b906_vs_110_en-us_1(7df9cab6-4c1c-e5cc-5149-26f71459df93).cab">v2visual_studio_2011_fundamentals_b906_vs_110_en-us_1(7df9cab6-4c1c-e5cc-5149-26f71459df93).cab</a>
</div>
<div class="package">
<span class="name">v2visual_studio_2011_fundamentals_b906_vs_110_en-us_4</span>
<span class="deployed">False</span>
<a class="current-link" href="v2visual_studio_2011_fundamentals_b906_vs_110_en-us_4(f881d128-d84e-70a7-989a-8b5a4808977b).cab">v2visual_studio_2011_fundamentals_b906_vs_110_en-us_4(f881d128-d84e-70a7-989a-8b5a4808977b).cab</a>
</div>
<div class="package">
<span class="packageType">branding</span>
<span class="name">VisualStudio_2011_Branding_en-US</span>
<span class="deployed">True</span>
<a class="current-link" href="VisualStudio_2011_Branding_en-US(08b345ee-bab5-517b-36cc-e0c486ca3962).cab">VisualStudio_2011_Branding_en-US(08b345ee-bab5-517b-36cc-e0c486ca3962).cab</a>
</div>
</div>
</body>
</html>
Summary – Using and extending the above steps will enable the downloading of cabs to a local folder. In addition, an MSHA which describes the downloaded cabs (per the above) will enable installation of local Help content. This can be useful for customers who want to create DVDs of local Help content, customers behind proxy servers, and customers who manage networks where clients do not have access to the Internet. Note that the above is only a very simple start. The MSHA file has additional support elements, content can be packaged in MSHC’s, and branding packages can be extended. All these features of the Help 2.0 system will be defined in the forthcoming Help 2.0 SDK.
Please send feedback to hlpfdbk@microsoft.com!
Anonymous
August 24, 2012
Well, VS2012 has RTM'd, along with Help Viewer 2.0. I have downloaded/installed all the help content I want available locally, so now, how do I turn the Manage Content tab off? It's really annoying that it's always there, as I don't always need it.
Anonymous
August 24, 2012
The comment has been removed
Anonymous
August 24, 2012
It's a bit jarring to have the VS2012 dark theme and then, when viewing help content, it's on a stark white page. Perhaps you guys could cook up some CSS for those of us who are using the Dark theme in VS.
Anonymous
August 24, 2012
Thank you for the comments!
We considered applying themes to topic CSS, but ultimately decided against it - it just felt like it was going a little far, as the content would have a different look and feel online if we did that. We also have content coming from many sources within Microsoft and could not guarantee it would work right for all content scenarios with the resources we had.
In any case, I'm sure the team will keep an eye on the feedback on this and consider for a future release.
Happy coding!
Anonymous
September 26, 2012
Hi everyone, i want to suggest a new scheme to make msdn-2012 library installation portable:
(All we need are - IE, Notepad and DownloadMaster)
Anonymous
April 07, 2013
Have a look to this web link (http://mistergreen.voila.net), you'll find a software to rebuild, automated way,
the Help Viewer 2 Content Setup file: HelpRefactory version 2
go http://misterjam.voila.net
go htto://mistergreen.voila.net
Anonymous
September 18, 2015
That is a very useful info. Can "msha" that has signed cab be installed in VS the same way?
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in