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
But now there is another problem. After the MSIX install, a call my app makes to HtmlHelp() succeeds if the file already exists as C:\Users\Public\Documents\MyApp\UsersGuide.chm. However, if MyApp\UsersGuide.chm does not already exist, the MSIX install fails to create that subdirectory and file. The msi file succeeds at that task, but the msix file it is converted to fails. Why is that? Why does MSIX fail to create a subfolder and copy a chm file into a non-restricted directory?