Setting HelpNamespace property for HelpProvider

  • Thread starter Thread starter Dennis C. Drumm
  • Start date Start date
D

Dennis C. Drumm

How do we set the HelpNamespace property of the HelpProvider class, so that
when the application is deployed the path will be correct, since the path
cannot be known for sure ahead of time? This is assuming the user installs
to a different folder than is the default.

Thanks,

Dennis
 
You can write the installation path to the registry key upon installation
and then set the HelpNamespace value programmatically by reading the
registry key value.

You might also want to check whether relative paths are supported by the
HelpProvider - if this is the case, specify relative path only, like
"Help\1033\MyProgram.chm".
 
Thanks Dmitriy:

Recording the install path to the registry is the solution.

Dennis

Dmitriy Lapshin said:
You can write the installation path to the registry key upon installation
and then set the HelpNamespace value programmatically by reading the
registry key value.

You might also want to check whether relative paths are supported by the
HelpProvider - if this is the case, specify relative path only, like
"Help\1033\MyProgram.chm".

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Dennis C. Drumm said:
How do we set the HelpNamespace property of the HelpProvider class, so that
when the application is deployed the path will be correct, since the path
cannot be known for sure ahead of time? This is assuming the user installs
to a different folder than is the default.

Thanks,

Dennis
 
Back
Top