No support for virtualized environment variables

%3CLINGO-SUB%20id%3D%22lingo-sub-228140%22%20slang%3D%22en-US%22%3ENo%20support%20for%20virtualized%20environment%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228140%22%20slang%3D%22en-US%22%3E%3CP%3EApplications%20packaged%20in%20the%20MSIX%20Packaging%20tool%20correctly%20capture%20changes%20to%20environment%20variables%20in%20the%20registry%2C%20both%20user%20and%20system%20based.%26nbsp%3B%20However%2C%20the%20application%20does%20not%20see%20these%20in%20the%20environment%20block%20when%20it%20tries%20to%20access%20them%20in%20the%20runtime.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApp-V%20provided%20virtualized%20environment%20variables%20and%20these%20are%20needed%20for%20a%20range%20of%20applications.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229021%22%20slang%3D%22en-US%22%3ERe%3A%20No%20support%20for%20virtualized%20environment%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229021%22%20slang%3D%22en-US%22%3E%3CP%3EJava%3C%2FP%3E%3CP%3EArcGIS%3C%2FP%3E%3CP%3EAutoCad%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20a%20bunch%20of%20the%20developer%20tools%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229010%22%20slang%3D%22en-US%22%3ERe%3A%20No%20support%20for%20virtualized%20environment%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229010%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20feedback.%20Do%20you%20have%20a%20list%20of%20applications%20in%20mind%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-Dian%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Applications packaged in the MSIX Packaging tool correctly capture changes to environment variables in the registry, both user and system based.  However, the application does not see these in the environment block when it tries to access them in the runtime.

 

App-V provided virtualized environment variables and these are needed for a range of applications.

7 Replies

Hi,

 

Thanks for the feedback. Do you have a list of applications in mind? 

 

-Dian 

Java

ArcGIS

AutoCad

 

and a bunch of the developer tools

How it is possible that after a long period of time the MSIX still not support Environment Variables , can someone from Microsoft could answer to this topic? A lot of applications require Environments and they are not supported by MSIX.

Yes, even I observed the issue while working with Java. It would be great, if we have any solution for this. Thanks to TIMOTHY MANGAN for highlighting this issue.

The free Express edition from Advanced Installer extends the MSIX container with a built-in support for environment variables.
https://www.advancedinstaller.com/express-edition.html
Well that was in 2018. WIth no action taken by Microsoft, I did add a specific fixup in the PSF for this situation in 2020 - the EnvVarFixup - which supports package environment variables. This fixup is included in PsfTooling and TMEditX for sure, and probably third party tools like Bogdan mentioned and others.
That fixup is indeed compatible with PSF support from AI too, but we had already implemented our own built-in version of the environment fixup, which makes the experience much simpler for the packagers.

Basically, all you need to do is to go to Environment Variables page in AI and add your variables, then AI handles the rest in the background. You don't need to specifically add the fixup in the AppCompat view, as is the case for the Files Redirection fixup, or others.