This article has been archived. It is offered "as is" and will no longer be updated.
When you try to upgrade your computer to Microsoft Windows XP, you may receive the following error message:
Error starting program: C:\windows\setup\setupapi.dll file appears to be corrupt, reinstall the file and try again.
This issue may occur if the Setupapi.dll file is missing or damaged.
To resolve this issue, restart your computer to your previous operating system, rename the Setupapi.dll file, and then run Windows XP Setup again. To do this, follow these steps:
Restart your computer.
On the Boot Menu screen, select your previous operating system. Note The subsequent steps in this procedure are written for Microsoft Windows 98. The steps for your operating system may vary.
After the operating system has started, click Start, point to Programs and then click MS-DOS Prompt.
In the MS-DOS Prompt window, type cd setup, and then press ENTER.
Type ren setupapi.dll setupapi.old, and then press ENTER.
Type exit, and then press ENTER.
Run Windows XP Setup again.
Note If this procedure does not resolve the issue, use a Windows 98 boot disk to restart the computer. When you are prompted, select Start with CD-ROM Support, and then run Setup from the Windows XP CD-ROM. To do so, follow these steps:
Insert the Windows XP CD-ROM in the CD-ROM or DVD-ROM drive.
Start the computer to an MS-DOS prompt with CD-ROM support.
For additional information about what to do if your computer does not have MS-DOS already installed or does not permit you to start to an MS-DOS prompt in the Boot menu, click the following article number to view the article in the Microsoft Knowledge Base:
187632 How to Create a Windows 98 Startup Disk that Supports FAT32
Start SMARTDrive if it is not already started. If you do not use SMARTDrive, the portion of Windows XP Setup that copies files to the hard disk performs slowly. To start SMARTDrive, change to the folder that contains the Smartdrv.exe file, type smartdrv, and then press ENTER.
At the command prompt, type drive, and then press ENTER, where drive is the drive that contains the Windows XP CD-ROM).
Type cd\i386, and then press ENTER.
Type winnt, and then press ENTER. Windows XP Setup starts.
Type the path to the Windows XP installation files, and then press ENTER. For example, type d:\i386.
Windows Setup copies files to the hard disk. When the files are copied, the following message appears:
The MS-DOS based portion of Setup is complete. Setup will now restart your computer. After your computer restarts, Windows XP Setup will continue. If there is a floppy disk in drive A:, remove it now. Press ENTER to restart your computer and continue Windows XP Setup.
Remove any floppy disks from the computer, and then press ENTER. The computer restarts and Windows XP Setup resumes. Press ENTER to continue.
Follow the instructions on the screen to select and format a partition where you want to install Windows XP. If your hard disk contains only one partition, do not delete it from the list of existing partitions. Windows XP Setup has copied the installation files to this partition. You can later convert a FAT32-formatted partition to the NTFS file system. Setup copies the files used for Windows XP Setup, and then the computer restarts. If you used the NTFS file system to format the drive, Windows checks the drive for errors, and then restarts. Windows XP Setup resumes in Graphical User Interface (GUI) mode.
Follow the steps in the Windows Setup Wizard to complete the installation of Windows XP.
For additional information about installing and upgrading Windows XP, click the following article number to view the article in the Microsoft Knowledge Base: