- Jun
- 38
- 1
I have a Path value in "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\emacs.exe" which is of type REG_EXPAND_SZ instead of REG_SZ, and which contains "C:\emacs\%MYEMACSVERSION%"
Apparently, REG_EXPAND_SZ is not forbidden in App Paths. Several Microsoft programs use it, for example wab.exe has:
Path="%ProgramFiles%\Outlook Express"
There are two issues:
1.- TCC is prepending the "App Paths" Path entry to the PATH environment variable. If I read the MSDN docs correctly, that should only be done for programs executed via ShellExecute (see, for example, KB 837633).
2.- More important, TCC is not expanding the Path entry before passing it to the program, so in my case it receives a literal "C:\emacs\%MYEMACSVERSION%"
1) is a feature, I suppose, but 2) definitely seems like a bug.
Apparently, REG_EXPAND_SZ is not forbidden in App Paths. Several Microsoft programs use it, for example wab.exe has:
Path="%ProgramFiles%\Outlook Express"
There are two issues:
1.- TCC is prepending the "App Paths" Path entry to the PATH environment variable. If I read the MSDN docs correctly, that should only be done for programs executed via ShellExecute (see, for example, KB 837633).
2.- More important, TCC is not expanding the Path entry before passing it to the program, so in my case it receives a literal "C:\emacs\%MYEMACSVERSION%"
1) is a feature, I suppose, but 2) definitely seems like a bug.