Refer to "How To Force Reenumeration of a Device Tree From an Application" http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q259697 if you want to go for your own custom action.
CM_Reenumerate_DevNode: http://msdn.microsoft.com/library/en-us/DevInst_r/hh/DevInst_r/cfgmgrfn_9ed0f83c-4b63-425f-b80b-9be5d69bb43a.xml.asp?frame=true Just one more thing. I have seen most of the custom (non-DIFx) device driver packages are run as immediate actions or external programs. Those actions should be a "deferred custom action" and preferably with no impersonation - which *can* be run in Local System Context. The former is the requirement for custom actions which changes the system. The latter allows normal users to install the package if privileged installation is allowed by the group policy. Regards, Chesong Lee -----Original Message----- From: Calin Iaru [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 4:42 AM To: Chesong Lee; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Device scan before install Hi Chesong, thanks for the link. From the FAQ: " Does the message cautioning that the hardware is unplugged at the end of the install actually scan for Hardware IDs? Or does this message just assume that the hardware isn't plugged in because a "software first" install has just completed? DIFxApp checks to determine whether or not the hardware is connected. " Not much to handle here. I think I will opt for a custom action. The logs generated by MSIEXEC after the Device Manager detected the hardware as "Other Device" show an extra call: DIFXAPP: INFO: ENTER UpdateDriverForPlugAndPlayDevices... MSI (s) (74!D0) [14:17:28:906]: Closing MSIHANDLE (128) of type 790531 for thread 1488 MSI (s) (74!D0) [14:17:33:703]: Creating MSIHANDLE (129) of type 790531 for thread 1488 DIFXAPP: SUCCESS:RETURN UpdateDriverForPlugAndPlayDevices. Maybe I can find the exact SetupAPI function which does a Hardware Scan before installing - the obvious candidate is the function above, but I need more info. Other driver installers like the Intel Ethernet Controller scan before installing - it uses InstallShield though. Best regards, Calin Chesong Lee wrote: > Take a look at DIFx > (http://www.microsoft.com/whdc/driver/install/DIFxFAQ.mspx) if it can help > you. > Otherwise, you may have to create your own custom actions to force such > actions using SetupDi APIs. > Consult devcon samples in DDK as a reference. > > Regards, > > Chesong Lee > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Calin Iaru > Sent: Thursday, July 27, 2006 1:37 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Device scan before install > > Hi List, > > given the scenario below, I would like to know how to force a device > scan before installing > a driver: > Device Manager shows "Other Device" detected > The drivers are installed > The drivers are uninstalled > The device entry disappears from Device Manager, but there is no "Other > Device" section > Install the drivers again > A prompt message appears saying > "Please attach your device to this computer any time after the > installation has finished" > Device Manager does not show any entry for the device > > So the problem is that install/uninstall/install driver will not detect > the device on the second > install. > > Best regards, > Calin > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users