UserDataDir can't handle OS variables

Brass Contributor

I filled "HKLM:\SOFTWARE\Policies\Microsoft\Edge" "UserDataDir" with value "%appdata%\Microsoft\EdgeData" but after launching Edge it gives an error that Edge can't create the directory.


Created it in the same user context without an issue, but even then it is not working. Pointing it to a hard coded path like C:\Users\username\AppData\Roaming\Microsoft\EdgeData seems to work (but I can't predict the value of %appdata%).


Same behavior for the DiskCacheDir setting.

I saw "${users}/${user_name}/Edge" in the example value, but $(users) also doesn't seem to work.

Would be nice to use vars like %appdata%.

1 Reply

Found a reference of the supported variables at Now it is working fine!