You receive a "Setup has detected that another program requires the computer to reboot" error message when you try to install Visual Studio .NET or Visual Studio 2005

Article translations Article translations
Article ID: 830608 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you try to install Microsoft Visual Studio .NET or Microsoft Visual Studio 2005, you may receive the following error message:
Setup has detected that another program requires the computer to reboot. You must reboot the computer before installing Visual Studio .NET Prerequisites. Once the system reboots, you need to restart setup. Click OK to reboot. Click Cancel to exit setup and install later.

CAUSE

When you run a Setup program to install any application, Setup may try to update some files that your operating system is currently using. For example, Setup may try to rename or to delete these files. If Setup cannot update these files, Setup sets the
PendingFileRenameOperations
registry entry to a non-empty value. You must manually restart your computer to update the files that your operating system was using during the installation process.

If you do not restart your computer, these files are not updated. If you then try to install another application (such as Visual Studio .NET), Microsoft Windows Installer determines that the
PendingFileRenameOperations
registry entry is not empty. Therefore, you receive the error message that appears in the "Symptoms" section of this article.

RESOLUTION

To resolve this problem, use any one of the following methods:
  • Restart your computer, and then run the Visual Studio .NET or Visual Studio 2005 Setup program.
  • Run the Setup program that is included on the Windows Component Update CD instead of the Setup program that is included on Visual Studio .NET CD1 or Visual Studio 2005 CD1. After Windows Component Update has completed, run the Visual Studio .NET or Visual Studio 2005 Setup program that is included on CD1.
  • Prevent your computer from restarting by removing registry information about packages that require your computer to restart. To do this, follow these steps.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
    322756 How to back up and restore the registry in Windows
    1. Manually rename the
      PendingFileRenameOperations
      registry entry. To do this, follow these steps:
      1. Click Start, and then click Run.
      2. In the Open box, type regedit, and then click OK to start Registry Editor.
      3. In Registry Editor, locate and then click the following registry subkey:
        HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager
      4. Under Name in the right pane of Registry Editor, rename the
        PendingFileRenameOperations
        registry entry.
    2. Verify that the following registry subkey is empty:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
    3. Verify that the following registry subkey is empty:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    4. Quit Registry Editor, and then run the Visual Studio .NET or Visual Studio 2005 Setup program.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Install a Windows Installer package that requires you to restart your computer.

    Note Do not restart your computer after this installation.
  2. Run the Visual Studio .NET or Visual Studio 2005 Setup program.

REFERENCES

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
312779 Visual Studio .NET Readme (Part 1)
316250 Visual Studio .NET Readme (Part 2)
822354 Visual Studio .NET 2003 Readme (Part 1)
822355 Visual Studio .NET 2003 Readme (Part 2)
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
Windows Installer
http://msdn2.microsoft.com/en-us/library/aa372866.aspx

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

Properties

Article ID: 830608 - Last Review: January 17, 2007 - Revision: 3.3
APPLIES TO
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
Keywords: 
kbvs2005swept kbvs2005applies kbsetup kbdeployment kberrmsg kbprb KB830608

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com