Q110636: Invalid Drive
Problem

When installing an installation created with InstallShield, the following error message might occur:

The invalid drive can vary per machine.


More Information

This error has several causes. One cause is that the installation was created with a hard-coded path to a drive letter that does not exist on the machine. If this is the case then there is no way to make the installation install to a different drive letter. The software vendor must be contacted. Other causes include:

  • The CD-ROM or DVD-ROM drive letter has changed since a previous install.
  • You have changed the drive letter of the hard disk that the operating system is installed on, for example, drive C.
  • This behavior may occur if a registry key contains an incorrect value in a Data field.

Fix

Because this error has different causes, you may have to check multiple items on your computer.

  1. If drive letters have been changed on your computer, re-assign the original letter to the CD-ROM, DVD-ROM, or operating system drive. Follow the steps appropriate to your operating system:
    Windows XP Users
    1. Click Start, and then click Control Panel.
    2. In Control Panel, double-click Administrative Tools, and then double-click Computer Management.
    3. In the Computer Management tree, click Disk Management.
    4. Right-click the CD-ROM or DVD-ROM drive, or the drive that contains the operating system, and then click Change Drive Letter and Paths.
    5. Click Change, and change it to the original drive letter. Click OK, and then click Close.
    Windows 2000 Users
    1. Click Start, point to Settings, and then click Control Panel.
    2. In Control Panel, double-click Administrative Tools, and then double-click Computer Management.
    3. In the Computer Management tree, click Disk Management.
    4. Right-click the CD-ROM or DVD-ROM drive, or the drive that contains the operating system, and then click Change Drive Letter and Path.
    5. Click Edit, and change it to the original drive letter. Click OK, and then click Close.
    Windows NT Users
    1. Click Start, and then click Run.
    2. In the Run dialog box, type windisk.exe in the Open field, and then click OK. This opens Disk Administrator.
    3. Find the letter of the CD-ROM or DVD-ROM drive, or the drive that contains the operating system that needs to be changed back to its original letter.
    4. Right-click the drive letter and select Assign Drive Letter.
    5. In the Assign Drive Letter dialog box, select the original drive letter from the drop-down list.
    6. Close Disk Administrator, accept the changes, and restart the computer.
     
  2. Verify that registry entries do not contain invalid drive letters that might be causing this error:
    Important: The following steps require you to modify the Windows registry. Modifications to the Windows registry, if not done correctly, can cause serious problems to a Windows system. Before editing the registry, see How Do I Back Up Registry Keys on My Computer?
    1. Click Start, and then click Run. The Run dialog box opens.
    2. In the Open field, type regedit, and then click OK. The Registry Editor opens.
    3. In the Registry Editor, locate the following registry key:
      HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    4. In the right pane, note the values in the Data column of each entry. If any value contains a drive that is not correct for your computer, right-click the entry and select Modify.
    5. Type the correct drive letter in the Value data field, and then click OK. For example, if one of the values is "X:\Documents and Settings\Administrator", the drive letter should be changed to a valid drive on the system, such as “C:\Documents and Settings\Administrator".
    6. Repeat steps 4 and 5 for each entry whose Data value contains an incorrect drive.
    7. Repeat steps 3 through 6 for each of the following registry keys:
       
      • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
         
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
         
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
         
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
       
    8. Close the Registry Editor and run the installation again.
     
  3. If none of the above suggestions apply, this error might be happening because the installation author has hard-coded a path to a drive letter that does not exist on the machine. In this situation, you should contact the software vendor. Your software vendor can follow the suggestions in the following InstallShield Knowledge Base article to help determine what is causing the issue within the installation project:
    Q107033 ERRDOC: Windows Installer Error 1327.
    Keep in mind that the above article is meant for the installation author that has created the installation. Many of the suggestions do not apply to consumers trying to install software.
    Another suggestion, although not a long-term solution, would be to create a partition on the local hard drive or map a network drive with the drive letter that is mentioned in the invalid drive error.

 

Does Your Issue Still Exist?

If after following these instructions your product failed to install, you'll need to contact your vendor. See the Who to Contact page for more information.


Glossary Terms and Related Topics
Q108213: hard drive
Q108362: regedt32.exe, regedit.exe
Q108239: How Do I Determine What Operating System Is on My Computer?

Last Modified Date: 10-02-2007ID: Q110636