As a result, on Win x64 we see a different number of objects.
It would be useful and correct for the new variable to return %SystemRoot%\Sysnative for TC x32 and %SystemRoot%\System32 for TC x64.
So far, I'm implementing this via autorun.cfg:
Code: Select all
If %AUTORUN_OSARCH% = 64 And %AUTORUN_TCARCH% = 32 Then
SetEnv SYSTEM32 '%SystemRoot%\Sysnative'
Else
SetEnv SYSTEM32 '%SystemRoot%\System32'
EndIf