How to troubleshoot Visual Studio .NET installation (319714)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)
  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual C# .NET (2002)
  • Microsoft Visual J# .NET (2003)
  • Microsoft Visual J# .NET (2002)

This article was previously published under Q319714
For a Microsoft Visual Studio 2005 version of this article, see 904732.

SUMMARY

This step-by-step article describes best practices for troubleshooting Visual Studio .NET installation and, if you experience problems during the installation, describes general steps for how to locate log files. More specific errors and problem are addressed in other Microsoft Knowledge Base (KB) articles.

Most installations of Microsoft Visual Studio .NET products occur as expected. The Microsoft Windows Installer is used to install these products. This is the same installation engine that you will use to deploy applications that you have developed in Visual Studio .NET.

Because of this, the installation should go smoothly, create the required log files, be self healing if damaged (resiliency), and perform complete rollbacks if potential problems are detected.

Best practices steps can prevent many problems. Consider using best practice installation methods for all installation, including service packs (SPs).

MORE INFORMATION

Steps to best practice installation methods

Best practice installation methods

Best practice installation methods for computers that are running Windows NT (including Windows NT 4.0, Windows 2000, and Windows XP) have the following three criteria:
  • Use the Local Administrator account.
    This prevents both permissions issues and rights issues. The Local Administrator account is the maintenance account. Use this account when you install and remove programs.
  • Stop all required services and programs.
    Many programs, particularly antivirus and other monitoring programs, interrupt the installation process.
  • Clear the System\Temp folder.
    The installation wizards use the System\Temp folder heavily. If the installation leaves corrupted files or folder there, the installation re-applies the corrupted versions instead of going to the installation source for fresh copies.

Use the Local Administrator account

By default the Local Administrator is named Administrator. However, you can rename this account for security reasons. To view the name and to change the password, follow these steps:
  1. Right-click My Computer. (On a computer running Windows NT 4.0, use the User Manager instead of these steps. Domain Controllers do not have access to Local Users and Groups.)
  2. Click Manage.
  3. Expand Local Users and Groups.
  4. Click Users.
  5. In the Details pane, locate the Administrator account. Typically, this account is named Administrator, and the description is Built-in account for administering this computer/domain.
  6. To change the password, right-click the account, and then follow the on-screen instructions.

Stop all required services and programs

To stop the services and the programs, follow the steps for your operating system:
  • Windows NT 4.0:
    1. Click Start, point to Programs, click Administrative Tools, and then click Services.
    2. Stop all non-Microsoft services, including services for antivirus programs and other monitoring programs.
  • Windows 2000:
    1. Click Start, point to Settings, click Control Panel, double-click Administrative Tools, and then double-click Services.
    2. Stop all non-Microsoft services, including services for antivirus programs and other monitoring programs.
  • Windows XP:

    Windows XP has a utility that is named MSConfig that prevents services and programs from starting for the installation session. For more information about how to run this utility, click the following article number to view the article in the Microsoft Knowledge Base:

    310353 How to perform a clean boot in Windows XP

Delete the contents of the System\Temp folder

  1. Click Start, click Run, type %temp%, and then click OK. This command opens the System\Temp folder.
  2. Delete the contents of this folder. If any contents are important (should not be deleted), move these items to another folder.

Installation

Windows Component Upgrade (WCU) in Visual Studio .NET 2002 or Visual Studio .NET Prerequisites in Visual Studio .NET 2003, gives the prerequisites for the Visual Studio .NET products. Depending on your operating system, different components are installed and the installation process requires a different number of restarts.

The destination computer should never have had any Beta or Release Candidate Visual Studio .NET product installed on it. If these product have been installed, it is a good idea to rebuild the computer (reformat the hard disk, and then install the operating system again) to verify that these products have been removed completely.

The executable file for Visual Studio .NET is named Setup.exe. This file is located in the root folder of Disk 1 of the CD-ROM or DVD-ROM installation media. This file appears in the installation dialog box. You must click 1 (the first selection, which is the WCU or Prerequisites) before you can click 2 to install Visual Studio .NET.

Setup prompts you for the WCU or Prerequisites disk, and then returns to the numbered installation media. For more information about WCU, see the "References" section of this article.

By default, verbose logging is turned on for the Visual Studio .NET installation. The log file is named VSMsiLog*.txt (* represents four alphanumeric characters in the file name, for example, VSMSILogA1d1.txt). The file is approximately 40 megabytes (MB).

Component files and logs

The following table lists each component, its location on the installation media, and the log file that is generated. Many of these log files are placed in the System\Temp folder, and then moved to the \Program Files\Microsoft Visual Studio .NET\Visual Studio .NET(Edition Name)\Logs folder when the installation is completed.

Microsoft Visual Studio .NET 2002

ComponentLocation on WCU CD-ROMLog or logs generated
Windows NT 4.0 Service Pack 6aNTSP6a\sp6i386.exe
Windows 2000 Service Pack 2Win2kSP2\W2KSP2.exeAppended to Windows Directory\Setuplog.txt (errors in Setuperrorlog.txt)
Microsoft Windows Installer 2.0 (for Windows 98)WindowsInstaller\2.0\InstMsiA.exeCreate log by using "Msiexec -I .msi Path:\*.msi /l*v Output Path:\log.txt" (after you extract the .msi file from the .exe file)
Microsoft Windows Installer 2.0 (for Windows 2000 and Windows NT)WindowsInstaller\2.0\InstMsiW.exeCreate log by using "Msiexec -I .msi Path:\*.msi /l*v Output Path:\log.txt" (after you extract the .msi file from the .exe file)
Microsoft Windows Management InstrumentationWMI\Wmicore.exe
Microsoft FrontPage 2000 Web Extensions ClientWeccom.msiDocuments and Settings\UserName\Local Settings\Temp\MSI*.log (using verbose logging)
Microsoft FrontPage 2000 Server Extensions Service Release 1.2FrontPageServer\Fpse2k.exeDocuments and Settings\UserName\Local Settings\Temp\MSI*.log
Setup Runtime FilesBootstrap.msiDocuments and Settings\UserName\Local Settings\Temp\MSI*.log
Microsoft Internet Explorer 6IE60\Ie6setup.exeWindows Directory\Active Setup Log.txt
Microsoft Data Access Components 2.7MDAC27\Mdac_typ.exeWindows Directory\Dasetup.log
Microsoft Jet 4.0 Service Pack 3Jet\Jetsetup.exeDocuments and Settings\UserName\Local Settings\Temp\dotNetfx.log; Netfx.log
Microsoft .NET FrameworkdotNetFramework\dotnetfx.exeDocuments and Settings\UserName\Local Settings\Temp\dotNetfx.log and netfx.log
Visual Studio .NETSetup\Vs70uimgr.exeDocuments and Settings\UserName\Local Settings\Temp
Windows Component UpdateDocuments and Settings\UserName\Local Settings\Temp\Baseventlog.txt; Baserrorlog.txt; DepCheckData.txt

Microsoft Visual Studio .NET 2003

ComponentLocation on WCU CD-ROMLog or logs generated
Windows NT 4.0 Service Pack 6aNTSP6a\sp6i386.exe
Microsoft Windows Installer 2.0 (for Windows 98)WindowsInstaller\2.0\InstMsiA.exeCreate log by using "Msiexec -I .msi Path:\*.msi /l*v Output Path:\log.txt" (after you extract the .msi file from the .exe file)
Microsoft Windows Installer 2.0 (for Windows 2000 and Windows NT)WindowsInstaller\2.0\InstMsiW.exeCreate log by using "Msiexec -I .msi Path:\*.msi /l*v Output Path:\log.txt" (after you extract the .msi file from the .exe file)
Microsoft FrontPage 2000 Web Extensions ClientWeccom.msiDocuments and Settings\UserName\Local Settings\Temp\MSI*.log (using verbose logging)
Setup Runtime FilesBootstrap.msiDocuments and Settings\UserName\Local Settings\Temp\MSI*.log
Microsoft Internet Explorer 6IE60\Ie6setup.exeWindows Directory\Active Setup Log.txt
Microsoft Data Access Components 2.7MDAC27\Mdac_typ.exeWindows Directory\Dasetup.log
Microsoft .NET FrameworkdotNetFramework\dotnetfx.exeDocuments and Settings\UserName\Local Settings\Temp\dotNetfx.log and netfx.log
Windows Component UpdateDocuments and Settings\UserName\Local Settings\Temp\wcuerror71.txt; wcuevent71.txt; DepCheck71.txt
You can prevent many corrupted file issues and media reading issues by doing a flat install. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

322950 Error messages when you cancel setup of Visual Studio .NET or the MSDN Library

REFERENCES

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

888470 Another installation program starts when you try to install Visual FoxPro, Visual Studio .NET, or prerequisites

For more information, visit the following Microsoft Web site, click Visual Studio .NET (2002) or Visual Studio .NET (2003) in the list of Microsoft products, and then click Go: For more information about Visual Studio .NET and installation, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:3/10/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbHOWTOmaster kbsetup KB319714 kbAudDeveloper