How to use ShowHelp with Vista's virtualized "Program Files" folder

Posted by fmunkert on Stack Overflow See other posts from Stack Overflow or by fmunkert
Published on 2010-04-16T13:51:25Z Indexed on 2010/04/16 13:53 UTC
Read the original article Hit count: 322

Filed under:
|

Hi,

we have the problem that ShowHelp seems to fail under Vista and Windows Server 2008 if the path name of the help file contains a virtualized folder name. For example, under the German version Vista, "Program Files" is called "Programme". The call

System.Windows.Forms.Help.ShowHelp(null, 
   @"C:\Programme\Microsoft Visual Studio 9.0\Common7\Tools\spyxx.chm");

fails, wheras

System.Windows.Forms.Help.ShowHelp(null,
   @"C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\spyxx.chm");

succeeds.

If there any way in C# to convert a file path into its non-virtualized counterpart?

Or is there any other solution to that problem?

Regards

© Stack Overflow or respective owner

Related posts about c#

Related posts about htmlhelp