https://bugs.winehq.org/show_bug.cgi?id=52544
Bug ID: 52544 Summary: %__APPDIR__% and %__CD__% variables support Product: Wine Version: 7.1 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: fiendishx@gmail.com
I'm not able to easily update to 7.2 because I'm on a mac and am largely dependent on https://github.com/Gcenx/homebrew-wine but I tested myself in Wine 6.0 and had a friend using Linux test in Wine 7.1, and it seems unlikely that this was fixed in the 7.2 update.
It seems like the %__APPDIR__% and %__CD__% path variables don't work in Wine? See the "undocumented" section of https://ss64.com/nt/syntax-variables.html
Example: wine cmd.exe echo %__APPDIR__% -> just prints "%__APPDIR__%"
On my windows machine, "echo %__APPDIR__%" prints "C:\Windows\SysWOW64" or "C:\Windows\system32" depending on which version of cmd.exe (32/64 bit) was invoked.