How to use ShowHelp with Vista's virtualized "Program Files" folder
- by fmunkert
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