Исправить недействительные цели ссылки после изменения буквы диска в папке «Program Files»

898
Byte Commander

У меня есть второй Program Filesкаталог в другом разделе, потому что я не могу сохранить их все на моем SSD. Таким образом, по умолчанию используется местоположение C:\Program Files, но некоторые программы, которые я не использую слишком часто, были расположены по адресу F:\Program Files.

Сначала я не заметил, что письмо второго раздела было, F:и я начал устанавливать материал, но потом я увидел его и изменил на D:то, что я хотел. Однако теперь, возможно, некоторые ссылки и сохраненные строки пути указывают на файлы на прежнем F:диске, который сейчас действительно включен D:. Конкретный пример - неработающая запись в диалоге «открыть с» для файлов .iso.

Как я могу легко просканировать реестр (и любые другие важные места) на наличие путей, нацеленных на старую букву диска, F:и исправить их так, чтобы они указывали D:сейчас? Использование Windows 10 Home.

2
Самое простое решение - просто установить эти программы заново. Гораздо проще, чем пытаться сканировать реестр на неправильный путь, так как редактор реестра на самом деле не имеет хорошей функции поиска и замены. Ramhound 8 лет назад 0
Ну, на самом деле я сейчас просто использовал функцию «поиска» в regedit.exe и вручную выполнил часть «Заменить». Теперь у меня болят пальцы ...: / Byte Commander 8 лет назад 0

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

2
Psycogeek

You yourself said they were stored in F:\program files, it wouldn't be that many items in the registry if you used that as the search, unless you moved it after, and not installed it there. Registry search has no problems with colon or spaces.
The same thing would apply to searching for text within/containing shortcuts, although finding a few shortcuts for installed programs and correcting them should not be trouble.

That leaves the installers pointer to the install location, some installers would store that in the registry, some would not.
EX: Some install/uninstall "logs" would have multiple file path & name for even every file item that was placed, without correcting that all that style of uninstaller would not uninstall.
There are many types of installers, searching both the registry and every file :-O should get you most the way there.

There are probably other things, and things related to windows 10 that, are not listed here. I would probably leave them there, and use D for a backup OS or something :-) next install change it then.

Я очистил большинство записей реестра "вручную" сейчас (ой, мои пальцы ...), и теперь я, вероятно, просто подожду и оставлю это, пока он работает ... Byte Commander 8 лет назад 0
2
iSR5

Working with the registry is risky, and I highly suggest to avoid this method. Since it might cause unstoppable system errors.

Two Methods can solve your problem, but both of them needs to reinstall your programs.

1st Method is to reinstall your programs to the correct folder destination. (As @Ramhound suggested in his comment) and continue using your system in your way.

2nd Method is to reinstall your affected programs to D:\Program Files and then move all C:\Program Files contents to D:\Program Files and then use Symbolic Links to redirect C:\Program Files to D:\Program Files. This will insure that any program will call C:\Program Files it will be automatically redirected to D:\Program Files, even if you install a new program and use the default destination C:\Program Files, it will automatically install its content in D:\Program Files, so you don't need to change the destination on every program. This will let your SSD breath by freeing some spa

Useful Article

Спасибо за упоминание Symlinks, я не знал, что Microsoft наконец переняла их из мира UNIX. Я думаю, что я буду использовать их интенсивно :) Byte Commander 8 лет назад 0

Похожие вопросы