ToastIT
November 7, 2016

PowerShell Updateable Help Frustration

Posted on November 7, 2016  •  3 minutes  • 587 words

AAAAAAAAAAAAARRGH!

I’ve been trying to brute force my way through this for a little over 24 hours now, and I’m afraid I’ll have to admit defeat.

I was playing around with the platyPS module to generate markdown and external help for my BurntToast module. It’s a very short leap from there to updateable help.

And honestly, once you have external help files it is actually a very simple process to get updatable help in place and working. There’s actually some very good articles out there on the topic, including those from June Blender and the series on MSDN

I mentioned it’s simple, so why the frustration?

As always, I needed to throw a self-imposed spanner in the works: the module is developed via GitHub, surely I can serve up the help content from there as well?

The things I’ve learnt

First up, I’ll list off the silly little things I picked up on that could save you some time:

Sounds simple, what did you do wrong?

Note: a lot, if not all, of the links shown below are no longer valid as I have cleaned up the repo(s)

My initial attempt was to put all of the required files into a directory in the BurntToast repo. But… what location do I link to?

I tried grabbing the download link for the cab file and stripping it down to the ‘directory’:

https://github.com/Windos/BurntToast/raw/master/Help/Updateable/

That should work, right?

Ok, fine, maybe a repo isn’t going to work. But wait! This blog runs out of GitHub Pages, perhaps I can serve these files out of a directory on there? Let’s try:

http://king.geek.nz/PSHelpContent/

Same result.

What is interesting is that when you try to run Save-Help on the module, it creates an empty, correctly named, cab file in the target directory.

This is actually different than if you remove the files from the remote location (or just point the URI at the entirely wrong place.) When this happens I only get one of the two error messages shown above and the empty cab file isn’t created.

For reference, the expected result of running Save-Help is a copy of both the cab and xml files.

What did you end up doing?

In order to move on from this and get to work on actually finishing the next release of BurntToast, I’ve installed IIS on my home lab server and dumped the files on there.

Using a URL that points to that, the updateable help is working flawlessly. Unfortunately, I don’t normally leave this server running 24/7, so I’ll need to look for a cheap hosted solution at some stage.

There may even be a demand for a community service around this?

I wonder if OneDrive or some sort of cloud storage will work?

On second thought, these are not rabbit holes I should be exploring right now.

comments powered by Disqus
Follow me