Compartilhar via


DoNotCleanUpNonPresentDevices (Standard 7 Package Reference)

7/8/2014

The DoNotCleanUpNonPresentDevices setting specifies whether Plug and Play information for devices that are not detected on the destination computer during the next specialize configuration pass should remain on the computer.

This setting is useful for devices with a physical on/off switch. When a physical on/off switch is off, the device information may be removed during either the generalize or specialize configuration pass. However, when both PersistAllDeviceInstalls and DoNotCleanUpNonPresentDevices are set to true, the device information remains on the computer.

This list describes the process Windows Setup uses to determine whether Plug and Play information remains on the computer, or is removed, or is removed and then re-initialized:

  • When PersistAllDeviceInstalls is set to true, then during the generalize configuration pass, Plug and Play-device information remains on the computer.
    During the next specialize configuration pass:
    • Any Plug and Play devices that are detected are re-installed.
    • For Plug and Play devices that are not detected:
      • If DoNotCleanUpNonPresentDevices is set to true, the device information remains on the computer.
      • If DoNotCleanUpNonPresentDevices is set to false, the device information is removed from the computer.
  • When PersistAllDeviceInstalls is set to false, then during the generalize configuration pass, Plug and Play device information is removed from the computer.
    During the next specialize configuration pass:
    • Any Plug and Play devices that are detected are re-installed.
    • Any Plug and Play devices that are not detected remain uninstalled. The DoNotCleanUpNonPresentDevices setting will have no effect.

Values

true

Specifies that during the next specialize configuration pass:

Plug and Play devices that are not detected remain installed.

false

Specifies that during the next specialize configuration pass:

Plug and Play devices that are not detected are removed from the computer.

The default value for this setting is false.

Valid Passes

generalize

Note

Though this setting is specified in the generalize configuration pass, it controls the behavior for the next specialize configuration pass.