Microsoft KB Archive/221524

{|
 * width="100%"|

FIX: Cannot Install Applications from Media When "AllocateCDRom or AllocateFloppies" Reg Values Are Set

 * }

Q221524

-

The information in this article applies to:


 * Microsoft Windows Installer, version 1.0, on platform(s):
 * the operating system: Microsoft Windows NT

-

SYMPTOMS
You may begin an application setup, and receive the following error when the Windows Installer attempts to read from the drive:

Installation ended prematurely because of an error.

Or, an Administrator may run an Advertise setup (for example, "Setup /jm" from Office) from a CD-ROM or floppy disk. The Windows Installer dialog box may be briefly displayed, but the application is not advertised. There is no error message as in the regular setup case above.

CAUSE
There are two registry entries in the HKEY_LOCAL_MACHINE\Software\Microsoft\ WindowsNT\CurrentVersion\Winlogon subkey that can cause this problem:


 * AllocateCDRoms:REG_SZ
 * AllocateFloppies:REG_SZ

One or both of these entries has been added and/or set to 1, thus disabling access to everyone but the locally logged on user. Because the Windows Installer runs as Local System when it reads off the CD-ROM or floppy disk drives, it is denied access because Local System is not granted access to the drives in this secure environment.

RESOLUTION
To run an installation from media, these registry keys should be removed or set to 0 (zero). There is no way to install from media with these keys and values set.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

This problem was corrected in Windows 2000.

Steps to Reproduce:
 Use the Security Configuration Editor to secure the system with any of the following templates:  compdc4.inf compws4.inf hisecdc4.inf hisecws4.inf securedc4.inf securws4.inf </li>  Run the application setup from the local CD-ROM drive or Floppy drive.

RESULT: Just before copying files, the following error appears:

Installation ended prematurely because of an error

-OR- </li> 

Run an advertise setup with the /j[u|m] switch.

RESULT: The Windows Installer dialog box is displayed briefly, but the application is not advertised. There is no error as in the regular setup case above.</li></ol>