0

I have leagcy Windows program (written in Delphi 2009, that uses Rx TFormStorage component), that tries to write ini file into Windows directory. Of course, Windows 10 does not allow it, instead, Windows 10 writes and reads this ini file from the C:\Users\\AppData\Local\VirtualStore\Windows directory. It works normally, however, sometimes the users receive error message 'Unable to write to'.

Why is that? For all that Windows is not required to give access to C:/Windows, it should redirect the user to the VirtualStore but why this redirection gives such error meesage? As I understand, then users are not required to have special rights to write and read in VirtualStore directory even it is VirtualStore/Windows directory?

So, why there is this error message and what user rights can I grant to the end user in my InnoSetup installation script (which is run with Administrator privileges) with the aim to get rid of the error message 'Unable to write to'?

https://answers.microsoft.com/en-us/windows/forum/all/files-going-to-cwindows-instead-of-virtualstore/f230007b-892d-47b4-a569-627929231f8b

4

0 回答 0