Adobe AIR Help in RoboHelp 8

What's covered?

AIR help is a new form of help from Adobe using .AIR technology.

Creating AIR help

Topics are created in the same way as any other output and that is outside the scope of this article. What we will do here is look at the wizard that you use to generate the outputs.

The Wizard - General Settings

 

Field

Description

Output Type

Select one of the four options.

Option

Description

Adobe AIR Application Creates an AIR file for local installation.
Browser Based Help Creates browser based air help.
AIR Application and Browser Based Help Creates both the above.
Help Content Only Creates the content only where your developers will be creating their own browser. Selecting this option will disable the Template page.
Output Location - AIR File

Where you will generate the AIR file.

If you are generating both forms of AIR help, you might find it easier if you create a folder under the SSL folder in Windows Explorer first. In the layout select that folder for both. RoboHelp will create separate folders within your chosen folder.

Output Location - Start Page Where you will generate the browser based help and the name of the start page.
Help Title

What you want to appear on the title bar of the help and the name that will appear in Program Files. It must be unique to each project and not be a name that might be used by someone else, such as "Help". I suggest something like Company A Product X Help. While this is the name that will appear in Program Files, it is not what the Auto Update uses when looking for previous versions of the help. If your company name and product name change and you alter the Help Title to Company B Product Y Help, the old version will still get removed and be replaced by the new version.

Version / Help ID

Whatever you want but they combine to create a unique key for each version. Do not change the Help ID, just increment the version number each time you release a new build. The combination of those two fields is the key to the mechanism that tells the installed help that a later version is available.

Digital Certificate

Adobe .AIR requires a digital certificate. Digital signing assures users that the help has not been maliciously altered and identifies your organisation as the publisher.

For internal use it does not matter whether or not it is a signed certificate and for testing it is easy to create a certificate using the screen opposite. Below is a simple diagram showing how digital signatures work.

You will probably want to use a signed certificate for your customers. You can purchase digital signatures from recognised authorities such as VeriSign or Thawte. Don't worry too much about this aspect. Normally your IT department will deal with it.

There is a PDF with more information on this on Verisign's site.

If it helps, this is how I got it working using a Verisign certificate.

  1. Get the .PVK and .SPC files, probably from your developers, and put them in a folder.
  2. Get the pvk2pfx.exe file from Microsoft and put that in the same folder. See the instructions and link on Verisign's site. Click here.
  3. Either follow those instructions or save the file to the same location as the .PVK and .SPC files and run a batch file, again from the same folder. The contents of the batch file will be as below. Just change the words in blue to your file names and password.

    pvk2pfx -pvk myprivatekey.pvk -spc mycredentials.spc -pfx mypfxfile.pfx /po mypassword
  4. A PFX file will be created in the same folder. This file is not yet ready to use.
  5. Double click the PFX file to start the import wizard.
  6. In the second page, make sure you tick the Mark this key as exportable option.

  7. In the next page, I used the automatic option.
  8. Continue and you should get an Import Successful message.
  9. Open Internet Explorer and go to Tools > Internet Options > Content > Certificates.
  10. Select the certificate you just imported and select Export. (Yes you read that correctly!)
  11. Follow the wizard making sure you select Yes, Export the Private Key.
  12. In the next page select the Personal Information Exchange option and make sure you tick Include all certificates and Delete the private key.

  13. Continue through the wizard until prompted to save the PFX file being created. Either overwrite the one created earlier or save the file to a new location.
  14. Browse to the new file from the AIR wizard.
Password Enter your password for the certificate. Tick the Remember box if required. The password is mandatory.
Include Timestamp Select to include a timestamp on the digital certificate. The timestamp provides information on how long the certificate is valid.
Program Menu Folder

By default, the help will be installed in Program Files in a sub-folder with the name of the help file.

If you want to specify a higher level folder within Program Files to which the help will be installed, enter the name of the sub-folder here.

For example, you might want all your company's help files to be entered in a folder named Company A. If you enter Company A here and the help file is My Help, the help will be installed in Program Files/Company A/My Help

 

The Wizard - Content Settings

 

These settings are the same as for any other online help output. Select as required.

 

The Wizard - Template Settings

 

Field / Button

Description

Template Select the required template. See Adobe AIR Help Templates and Skins.
Skin Select the required skin. See Adobe AIR Help Templates and Skins.
Copyright Your copyright notice. Appears in Help | About.
Description A description of the help. Appears in Help | About.
Width / Height The default size of the locally installed browser.
Specify Branding Options

Click Select to access the Branding Options screen.

128 X 128 I believe this is used on MACs.
48 X 48 Appears on the desktop shortcut
32 X 32 Appears in the Windows Task Bar
16 X 16 Appears in title bar before the Help Title.

 

The Company Logo appears top right where Powered by RoboHelp used to appear.

Only PNG images are permitted.

 

Branding Options

 

Field / Button

Description

Icon Images / Logo Browse to the required images.
Text Insert whatever you want, within reason!
Next Toggles displaying the Icon Images and the Company Logo.

The Wizard - View Settings

 

Field / Button

Description

Search Fields

These settings are the same as for any other online help output. Select as required.

"Show context in Search Results" is not available in all the templates.

Enable Commenting

Comments can be made by end users and by reviewers. See the Comments section in Adobe AIR Help.

Tick to enable comments for either users or reviewers.

To enable reviewers to share comments, enter a network folder using the server name, not the mapping letter, otherwise leave the path blank.

The Browse button does not see mapped network drives as other users might not have the same mapping. However, you can type in the path using the server name and that will work.

Having to enter a server name creates a problem if you want end users to share comments. Typically you would only want users within one company to see comments made by users in that company. You could enter a server name and path that would work for those users but it would not work for the users in another company, their server would have a different name and likely a different path. If you have a lot of companies using your product, producing a separate AIR file for each of them is not a viable solution. Fortunately one of my developer colleagues, Mike Hempenstall, has come up with a workable solution. Click here to view the instructions.

Enable Auto Update

Tick this box if you want auto-updating to be enabled.

You can specify a network location or a web location for the XML and AIR files that will be created when you generate an output with this option ticked.

With this option enabled, when you update the help you increment the version number in General Settings but you do not update the Help ID. When the user opens the help it will look in the specified location and if it finds a higher version for the same ID, the user will be prompted to install the update.

Consider who you want to get the update.
If your product is at Version 1 and the help is about some updates that Version 1 users are entitled to get free, you will likely want them to have the revised help. In that scenario, change just the help version.
If you new help is for Version 2, you would not want Version 1 customers to install the new help. In this scenario, change the Help ID and start the numbering again. That will not remove the earlier version, your developers will need to ensure the program upgrade not only uninstalls the old version of the program, they must uninstall the old help as part of that routine.

Add Resources

If you use the Multi Tab Accordion template, additional tabs can be added linking to other resources. The bars are added using the buttons.

Show Online Content

If you want users to use online content when a connection is available and local content at other times, tick this option and enter the URL for the online content.

This does mean that if users need to access online content at different locations because it has to be behind a firewall, you need to generate an AIR file for each location that has to be specified.

### Link to Tulika's blog.

 

The Wizard - Server Settings

If you selected to generate browser based AIR help, the Server settings will be enabled. Define the location of the published output in the same way as when producing webhhelp.

The LNG File

You can customise many of the terms that appear in AIR help by accessing the LNG file and scrolling down to the Adobe AIR section.

For example, the comments pod shows the term Comments by Reviewer, which is fine when you are generating an output for Subject Matter Expert reviews.

However, it is not appropriate for end users who can only see their own comments or any they have imported into their own comments (remember, they cannot see other users comments). The LNG file allows you to change that and many other terms. You simply highlight what you want to change and click Edit, change what appears after the equals sign.

Now users will see All Comments.

What do I do with the output(s)?

Locally installed AIR help

First check it on your own PC! It is important that you understand that the AIR file is not the help itself in the way that a CHM file is, it is an installer.

With the AIR runtime installed, you simply double click the AIR file. and you will see a window telling you the file is being prepared and then you will see a certificate dialog.

 

 

Click Install to see the default install path. The installer will add a folder for the name you define in the Help Title. The program folders and files installed are pretty much the same as a webhelp output but like any program, the end user does not see that. All they have to know is that installation is as quick and easy as any program and they just click a shortcut.

 

 

That's it. The help will open as I selected that option. If you are happy the help is functioning correctly, pass the AIR file to your developers.

Browser based AIR help

Deliver the output to your developers in the same way that you would WebHelp. In other words, give them all the files in the output folder. I suggest you zip them up and deliver the zip file.

Help content only

Deliver the file to the developers. If you are working with this output, it will be at their request and they will know what to do with the file.

More information

Your developers might find this page on Adobe's site useful. It contains the information they will need about installing an AIR application from the desktop or a web page.

Click here for the AIR runtime distribution FAQs page.

This page contains information about distributing the AIR Runtime and enables you to apply for a licence.

Merged AIR Help

Contrary to what was previously stated here, both Browser Based AIR Help and Desktop (local) AIR Help can be merged.

Calling the Help

Browser Based AIR Help

This is called in the same way as WebHelp. See Calling WebHelp if you need further information on that.

Locally Installed AIR Help

If you simply want to open the help, create a link to the exe file in Program Files.

For context sensitive help, Adobe provide an API for applications written in C++. Search in the help for Call a context-sensitive Help function for AIR Help.

For context sensitive help written in any other language, your developers will have create their own call to the exe followed by the parameters. In this post, Timothy Haagenson has detailed what he found. The details are repeated below and in case the forum is not available at any time, here's a PDF of the full thread.

Parameter

Description

-csh This is the beginning of your command line and required to call context sensitive help. Place a single space after this line (and between subsequent commands) and continue with the other commands
helpid "parameter"

(Optional) ID of help content to be viewed in Viewer. It is specified in .helpcfg file. (taken from Adobe help contents)

window "parameter" (Optional) This is the name of the window you want to call in your help file and is optional.
Only one of the 3 following may be selected. If you use more than one, topicurl has preference, then mapid, then mapnumber. The lower priority is ignored when more than one is used.
topicurl "parameter"
(Optional) Url of the topic, note that the default location is Data\topic.htm for you to use this functionality
mapid "parameter"
(Optional) Context-sensitive map ID. If specified it takes priority and ulMapNum is ignored. (taken from Adobe help contents)
mapnumber parameter Context sensitive map number specified in map file. It should be noted that this is the only parameter that is not encased in quotation marks.

 

Timothy also provided examples to be placed in a shortcut for testing.

"C:\Sandbox\AIR\TestApplication.exe" -csh window "MyWindow" topicurl "Data\MyTopic.htm"

"C:\Sandbox\AIR\TestApplication.exe" -csh window "MyWindow" mapnumber 3

Calling AIR Help from an AIR application

Praful Jain of Adobe posted the following in this thread. (Click here for a PDF of the thread.)


As specified by other people here in the forum, it is certainly possible to call a CSH AIR help from any AIR application. Please check this forum post. (Click here for a PDF of the thread.)

You need to know your AIR Help application ID, and the publisher ID.

Application ID is the one which was specified in the AIR SSL dialog in RoboHelp 8 AIR SSL dialog (Help ID).

The publisher ID for an installed application can be found in the META-INF/AIR/publisherid file within the application install directory. This Publisher ID is generated using the digital certificate provided while generating the AIR Help in AIR SSL dialog.

Once Application ID, and Publisher ID are known to the developer, he/she can call the AIR help by using the Following Flex code

private function invocarAirHelp(tema:String):void {
var appID:String = "abc";
var pubID:String = "ashfksdhfkjsdfk.1";
var mgr:ProductManager = new ProductManager("airappinstaller");
mgr.launch("-launch " + appID + " " + pubID + " -- -csh mapnumber 1");
}


Donations

If you find the information and tutorials on my site save you time figuring it out for yourself and help improve what you produce, please consider making a small donation.

Topic Revisions

Date

Changes to this page

30 Jun 2011 Merging AIR Help section amended to cover merging of desktop AIR help.
26 Mar 2011 What's covered amended to included RoboHelp 9 link.
07 Mar 2011

The For Developers section has been changed to More Information. It contains the same links plus a link to a FAQs page.

The merged AIR help section now states locally installed AIR help cannot be merged.

31 Jan 2010 Comments section updated.
12 Jan 2010

Calling AIR help from an AIR application added.

Server tab information added.

04 Jan 2010 Auto updating instructions amended.
04 Jan 2010 Commenting instructions amended.
20 Oct 2009 New Topic