Question

I'm developing a powershell snapin derived from PSSnapIn.

If I manually copy my snapin.dll-help.xml file to the GAC get-help on my command works like expected.

So, is it possible to get InstallUtil to copy the xml file as well as the dll upon install?

Was it helpful?

Solution

If you can use PS V2, I would suggest creating a PowerShell V2 Module. This removes the need to use installutil. You can deploy with Xcopy if you want. You just need to create a module manifest. You can also include your help file in the directory of the module you create, and it will work. You still use the PSSnapin base class, but how you package it is different. This was one of the major improvements from V1 to V2. In PowerShell, run the command to get some info on modules.

PS> help about_module
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top