One of the possible reasons is that redirection of the "Windows" folder to User Profile folder is enabled. The "Windows" folder appears in this case in the User Profile folder (e.g.: C:\Users\%USERNAME%\Windows). It happens when the server role ''Remote Desktop Services'' (Windows Server 2008) or ''Terminal Server'' (Windows Server 2003) is added.
This problem can be solved by enabling the ''Do not substitute user Windows directory'' option for a particular application through the Windows Registry. To enable the option, do the following:
1. Start Registry Editor. (regedit.exe)
2. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Compatibility\Applications\
(for 64-bit applications on 64-bit OS, or 32-bit applications on 32-bit OS)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Terminal Server\Compatibility\Applications\
(for 32-bit applications on 64-bit OS)
3. Create the subkey MYAPP in the subkey located above
MYAPP is the name of an executable file in the ''Myapp.exe'' application.
For example the name of IrfanView executable file is “i_view32.exe”. Thus a subkey name for this application will be i_view32.
4. Create the value with the following parameters:
Value Name: Flags
5. Assign hex value of 408 (add 0x00000008 for 32-bit Windows applications, add 0x00000400 to disable the substitution of user Windows directory).
For more information about this option follow the link http://support.microsoft.com/kb/186499