Forum Discussion
How to set Environment Variables
I am teaching a class, so I don't have time to look into this in detail right now, but quickly I see the following:
1 - The Trace fixup is not compatible with the other fixups, It should be removed.
2 - The executable parameter of the application is incorrect (Applications 1 and 2). Since the file is not native and is part of your package, that reference should be a relative one; a form similar to how you specified the working directory.
3 - On an x64 system, the cmd.exe will be a 64-bit process, so the 64bit versions of dlls would be needed. 32bit dlls were attempted because the reference to the cmd was no good.
TIMOTHY_MANGAN I made the modifications but still it does not work. Maybe it is related to my Windows 10 version 20H2. Or should support for envVar be available in there as well?
1. I did remove the TraceFixup but that does not make any difference. So I enabled it since I like the feature of seeing what is going on during the test.
2. I change the path to a relative one. Makes no difference 😞
3. I forced the 64 bit versions of all DLLs and see in the debugview that those 64bit versions are loaded succesfull now.
Additionally from PowerShell I also tried: $env:APPHOME and [System.Environment]::GetEnvironmentVariable('APPHOME'). Both did not work.
Happy continuing teaching the class. Hope to see you in November in Culemborg in The Netherlands.