custom disk class driver installation

Hi,
We have a custom disk class driver for our storage. As part of the
installation, I am using install.exe to install the class driver. I have
more than 100 devices on the host. Install.exe uses
UpdateDriverForPlugAndPlayDevices(). The api tears down the stack for each
device and rebuilds the stack. For 100 devices, it takes 1/2 hr to
complete class driver installation. As the number of disks increases, the
install time increases proportionately. This is unacceptable for many
customers because in the tear down process, devices are unavailable and
all applications running on these devices get affected. Is there a way
that installation can quickly update these device registry entries and
prompts for a reboot. Most customers are ready to take a reboot rather
than waiting for an hour for an installation to complete. Remember
uninstall takes equal amount of time.

Muralidhar Balcha.

EMC Corporation.

Do not use UpdateDriverForPlugAndPlayDevices() with unsigned drivers
here.

Better use
SetupDiGetDeviceInstallParams/SetupDiSetDeviceInstallParams
to set:
DeviceInstallParams.Flags |= DI_NOFILECOPY;
DeviceInstallParams.FlagsEx |= DI_FLAGSEX_ALLOWEXCLUDEDDRVS;
then do a SetupDiBuildDriverInfoList.

Followed by SetupDiEnumDriverInfo and SetupDiSetSelectedDriver.

Finally do a SetupDiCallClassInstaller(DIF_INSTALLDEVICE…).

This will use the already available drivers.

HTH,
Norbert.

“The only thing you can count on to be free of charge are batteries
when you need them.”
---- snip ----

Hi,
We have a custom disk class driver for our storage. As part of the
installation, I am using install.exe to install the class driver. I have
more than 100 devices on the host. Install.exe uses
UpdateDriverForPlugAndPlayDevices(). The api tears down the stack for each
device and rebuilds the stack. For 100 devices, it takes 1/2 hr to
complete class driver installation. As the number of disks increases, the
install time increases proportionately. This is unacceptable for many
customers because in the tear down process, devices are unavailable and
all applications running on these devices get affected. Is there a way
that installation can quickly update these device registry entries and
prompts for a reboot. Most customers are ready to take a reboot rather
than waiting for an hour for an installation to complete. Remember
uninstall takes equal amount of time.

Muralidhar Balcha.

EMC Corporation.


You are currently subscribed to ntdev as: xxxxx@stollmann.de
To unsubscribe send a blank email to %%email.unsub%%

---- snip ----