Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I changed the ProgramFilesDir to D:\Program Files manually, the Windows Photo Viewer did not work again.

It failed to start with error messagebox Rundll: could not found D:\Program Files\Windows Photo Viewer\PhotoViewer.dll.

How could I get my photo viewer work without reverting the ProgramFilesDir?

Thanks in advance.

share|improve this question
If you browse to the directory and run the exe from there does it work? – ChrisF Sep 25 '10 at 13:46
There is no exe files. – Jichao Sep 26 '10 at 5:52
Some windows elements need to reside on the system volume - this may be one of them – BJ292 Mar 31 '12 at 19:27

You might have moved your Program Files folder to D:, but left Windows folder on drive C:. If so, it's not going to work. Ever.

From Raymond Chen:

Now that NTFS is mandatory for the system volume (it took only 13 years to get there!), Windows itself can start taking advantage of NTFS features.

A large percentage of the files installed by Windows are hard-linked to copies in the C:\Windows\WinSxS directory. ...and in Windows 7, the two copies of Notepad are now hard links to each other.

Ah, but one of the limitations of hard links is that they cannot span volumes. Some of the hard links out of the WinSxS directory point into places like C:\Program Files\Windows NT\Accessories\wordpad.exe, and this in turn requires that the Program Files directory be on the same volume as your Windows directory.

Sorry for the inconvenience.

PhotoViewer can probably no longer find its required files, because you moved them.

Sorry for the inconvenience.

If you did move Windows folder to drive D:, then this answer doesn't apply to you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .