Папка C: /.../ AppData / VirtualStore / эмулирует что-нибудь?

7383
MorrisIriga

Недавно я установил две старые игры для ПК: Elder Scrolls Morrowind и Battlefield 2 :) Однако, когда я начал искать свой файл сохранения Morrowind, я не смог найти его в обычных местах, например в папке Documents. Мне пришлось выполнить поиск по всему диску C и в итоге обнаружил, что две игры сохранили свои файлы сохранения в C: /.../ AppData / Local / VirtualStore / Program Files (x86) /. Эти игры были ориентированы на Windows 2K / XP, и я играю в них на 8.1. Расположение этих файлов и имя папки «VirtualStore» предполагают некоторую эмуляцию. Это так?

3

2 ответа на вопрос

6
Ƭᴇcʜιᴇ007

Ever since Windows Vista, applications that are not running with raised privileges that try to write to the Program Files (or Program Files (x86)) folder will in fact write to the VirtualStore folder, unknowingly.

Microsoft thought that this would be better than a program failure (caused by the access restriction). And indeed, thanks to this, most old programs that save their settings in the Program Files folder will continue to work with Windows Vista+, and each user will get her own settings, as a bonus, even though the original software manufacturer did not think of this.

Source/More Info

0
dsolimano

Windows versions starting with, I believe, Vista started to lock down write access to Program Files as users were no longer administrators by default. So that old applications that expected the user to be administrators continued to work, registry and file system virtualization was put in place. Writes and reads to protected locations are transparently redirected to user-specific locations, as you have seen.