Calin,

For your questions, the wizard will be disappeared automatically once you 
update your "Other devices" with actual drivers. AFAIK, there is no other 
workaround to prevent the wizard to pop up when a new device node is detected 
in the system.

Actually, the point is that you should not to uninstall your drivers when you 
uninstall your program if it really involves the hardware. When uninstall your 
software just remove your value-added applications not uninstall drivers. Then 
later when you install the newer driver, it will update the existing drivers. 
That is what is recommended by DDK.
Take a look at what DIFx can do for you and make use of it.

Regards,

Chesong Lee

-----Original Message-----
From: Calin Iaru [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 28, 2006 7:21 AM
To: Chesong Lee
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Device scan before install

Hi Chesong,

   Is there a way to supress the "New Hardware Wizard" when 
CM_Reenumerate_DevNode is called? None of the parameters
can do it. I guess I have to ask this question in a forum; The Wizard 
appears in XP, but not in Server 2003.

Best regards,
    Calin

Chesong Lee wrote:
> 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

Reply via email to