This registry _value_ (not key) should almost certainly be created by
the hardware INF, not by your application installer. USB devices will
normally have a serial number which is part of the registry key name; if
it doesn't have a serial number then Windows will create a unique key
based on the port that the device is plugged into. This means that your
DeviceHandlers value won't be applied correctly to a device if the user
moves it to a different port.

If you are using serial numbers but each device has the same serial
number, you have a different problem - if a user plugs two of the
devices into the same computer, Windows may behave oddly. See Raymond
Chen's blog at
http://blogs.msdn.com/oldnewthing/archive/2004/11/10/255047.aspx.

Your Windows Installer-based package should not be creating this value,
in my opinion.

At least, if I'm reading
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc
/platform/shell/programmersguide/shell_basics/shell_basics_extending/aut
oplay/autoplay2k_cookbook.asp correctly.

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BrianG
Sent: 27 September 2006 14:39
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Prevent Registry Removal


My company has different applications that use the same USB device. As
such, they all install registry keys for the AutoPlay functionality of
the device. 
I need to prevent the removal of the device's DeviceHandlers key upon
uninstall of an application.  If this key is removed, it breaks the
AutoPlay for all the other apps that use the device.  If I suppress the
entire RemoveRegistry function then the uninstalled app appears in the
AutoPlay list but will, of course, not launch.  Does WIX have anything
that would allow me to prevent the removal of this single registry key
or possibly re-write the key at the end of the uninstall process?

Thank you,
BrianG
--
View this message in context:
http://www.nabble.com/Prevent-Registry-Removal-tf2344822.html#a6526900
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
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