Forum Discussion
farmerphd
Nov 13, 2023Copper Contributor
MSIX installed application on Windows 10 cannot access host machine graphics
Hello All, I am developing a Microsoft Application that is installed with a MSIX installer. The structure of the application is a *.exe application that is identified as the primary application (...
farmerphd
Nov 24, 2023Copper Contributor
@Eyad, is there an example of best practice to include the OpenGL library in a MSIX package structure?
Nov 28, 2023
farmerphd
Without seeing the Process Monitor trace myself, I can only give you an educated guess. Traditional applications have multiple ways to help find the dlls that they need, and this can get messed up in MSIX.
If in the procmon trace you notice the app trying to open the opengl dll(s) from different locations but ultimately failing, there are actions that you can take.
- Treat the OpenGL libraries as an external dependency. This is probably not desirable.
- Include them inside the package but make sure they can be found. There are several different ways to do this, and all are effective:
- If all dlls are the same "bitness" (architecture), then placing them in the root folder of the package will solve the issue.
- They may also be placed in the VFS\SystemX86 and VFS\SystemX64 folders of the package and this would also solve the issue. This is needed when the app has the same dll name in different bitnesses for different exes, but even if not, as long as you put it in the right system virtual folder it works.
- There is an extension for the AppXManifest called uap6:LoaderSearchPathOverride that can list additional directories in your package that dlls live in.
- The PSF has a solution (DynamicLibraryFixup) as well, but you probably don't want to go there.
- farmerphdNov 28, 2023Copper ContributorThank you for your reply TIMOTHY_MANGAN. This is really helpful. Best case, I will add the .dlls to the root folder. First, I'll add the uap6:LoaderSearchPathOverride to the AppXManifest and check for all dlls.
Thanks again.- farmerphdDec 04, 2023Copper Contributor
Are there any examples of include opengl dlls in a MSIX package? I only added the opengl32.dll to the SystemX64 and X86 folders. It still shows 'not installed'. There are libraries to include but not sure which one is needed. My app is a X64 application.