Forum Discussion
OneFiftyLashes
Mar 17, 2023Copper Contributor
Environment variables in MSIX package wont be used by AVD session host
Hi, We've been struggling with environment variables in MSIX packages. The package is created with Microsoft's MSIX Packaging Tool and a script was used under capture. Script is adding environment v...
Aniket_Banerjee
Mar 29, 2023Brass Contributor
While we are waiting for you to share more info on this, we created our own C++ exe application which uses an env variable, converted to MSIX with the PSF Env Variable fixup. It works perfectly when tested.
We also converted the MSIX package to VHDX via MSIX MGR and then App attached - it worked on AVD as well.
I'll wait for you to share the application to understand the exact issue, but there's no outright bug that we could find.
- OneFiftyLashesMar 31, 2023Copper ContributorHi, apologies for late response.
The application is SAP logon, which contains a number of sub-applications where one of these need environments variables. The package is full of customer specific info, so unfortunately I can't send it to you. I've used the latest version of PSF framework and tried to use env variable fixup. Could you by share your .json and manifest so I can look for syntax errors on my side?- Aniket_BanerjeeApr 27, 2023Brass Contributor
As I mentioned in my previous comment, we had created a test application. The config file was in the format:
{ "applications": [ { "id": "ENVVARIABLETEST", "executable": "VFS/EnvVariableTest.exe" } ], "processes": [ { "executable": "PsfLauncher.*" }, { "executable": ".*", "fixups": [ { "dll": "EnvVarFixup.dll", "config": { "envVars": [ { "name": "Test1", "value": "Value1", "useregistry": "false" }, { "name": "Test2", "value": "Value2", "useregistry": "false" }, { "name": "Test3", "value": "Value3", "useregistry": "false" } ] } } ] } ] }
- HoratiuVJul 12, 2023Copper Contributor
Have you managed to make this fixup working for PATH Environment Variable?