Forum Discussion
StevenBrown-4429
Nov 16, 2021Copper Contributor
Call to HtmlHelp() fails after desktop app is installed by MSIX.
After using MSIX Packaging Tool to convert an msi installer for my Windows desktop app to an msix installer, a call my app makes to HtmlHelp() fails to display the .chm file installed along with the ...
- Nov 17, 2021I solved the problem by using the C:\ProgramData folder for installing the subfolder and .chm file. That is one of the folders Windows maps to the VFS (Virtual File System) that MSIX installs to.
StevenBrown-4429
Nov 16, 2021Copper Contributor
The problem is, MSIX installs the chm file into VFS\Common Documents\MyApp\UsersGuide.chm, but that directory does not appear to be mapped by Windows to C:\Users\Public\Documents\MyApp\UsersGuide.chm, because when my app calls HtmlHelpW(hWnd, wch_HelpPath, HH_DISPLAY_TOPIC, NULL), where wch_HelpPath is a pointer to L"C:\Users\Public\Documents\MyApp\UsersGuide.chm", it fails.
How can a desktop app simply read a file that has been installed into the Common Documents folder in the VFS?
How can a desktop app simply read a file that has been installed into the Common Documents folder in the VFS?