I set an env var to a simple string (Using the Environment tab, as explained in the tutorial here- https://www.advancedinstaller.com/msix- ... ables.html), and in my app I read that env var - it is still unset.
Also when opening cmd in the app with Hover , the env var is unset.
This is the same whether I check the "system variable" checkbox or not.
Perhaps related to the "Component" part? I set the Component to be APPDIR, but honestly I'm not sure what the component should be (I want the env var to apply globally for all processes & dlls in the MSIX)
* Edit - it looks like the env var is set in the executable that is the default application for my MSIX, but it starts new processes using ShellExecute, and in those processes the env var doesn't exist (as well as when starting cmd with hover)
thanks
Keren
FOLLOW US