Microsoft KB Archive/940291

= Error message when you try to install a program from the network on a Windows Vista-based computer: &quot;Fatal error during installation&quot; =

Article ID: 940291

Article Last Modified on 10/31/2007

-

APPLIES TO


 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Vista Enterprise
 * Windows Vista Ultimate

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you try to install a program on a Windows Vista-based computer by using the Install a program from the network item in Control Panel, you may receive an error message that resembles the following:

Fatal error during installation

Additionally, if you have Windows Installer logging enabled, you notice, in the Windows Installer log file, that Windows Installer tries to access the following folder:

\\ \ $\cached\appdata(roaming)

Note  is a placeholder for the actual server share name. is a placeholder for the actual computer name.



CAUSE
This problem may occur if the value for the following registry entry has been changed:

For example, the value of this registry entry may be changed by a logon script. The value for this registry entry is changed to use the environment variable %USERNAME%. However, when Windows Installer reads the value of this registry entry, Windows Installer incorrectly expands the value of the %USERNAME% environment variable to the computer name instead of to the logon user name. Then, Windows Installer cannot access the path of the program correctly. Therefore, you cannot install the program from the network.



WORKAROUND
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To work around this issue, use one of the following methods.

Method 1
Use the Folder Redirector policy to change the value of the AppData registry entry. To do this, follow these steps:
 * 1) Locate the following node in the Group Policy Object Editor:

User Configuration\Windows Settings\Folder Redirection\Application Data
 * 1) Right-click the node, and then click Properties.
 * 2) In the Application Data Properties dialog box, click one of the following items in the Settings list:
 * 3) * Basic - Redirect everyone's folder to the same location
 * 4) * Advanced - Specify locations for various user groups
 * 5) Specify the path of the server file system to which the folder should be redirected.

Method 2
Edit the value of the AppData registry entry to use the actual user name. To do this, follow these steps:  Open Registry Editor. Locate the following registry entry:

 Use the actual user name to replace the environment variable in the value of the registry entry. For example, change the value from “%USERNAME%\AppData” to “ ,” where “ActualUser” is the name of the current user.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
To install a program from the network on a Windows Vista-based computer, follow these steps:
 * 1) Click Start vistastartbutton.jpg], and then click Control Panel.
 * 2) Click Programs, and then click Get Programs.
 * 3) Click a program in the list that is displayed.
 * 4) Click Install.

For more information about Windows Installer in Windows Vista, visit the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/aa372866.aspx

For more information about how to enable Windows Installer logging, click the following article number to view the article in the Microsoft Knowledge Base:

223300 How to enable Windows Installer logging

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbtshoot kbprb KB940291

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.