Are you seeing it deleted in an MSI uninstall log or inferring that it's been deleted because your code can't find it? You are ensuring it's there before you uninstall, right, because it is unconditionally created no matter what features get chosen at install time? Also there are registry items that will get deleted before RemoveRegistryValues if they are special (UnSelfRegModules runs before RemoveRegistryValues). The privileges of your code will also affect whether it's there or not when you try to access it.
Phil Wilson -----Original Message----- From: william lee [mailto:wele...@gmail.com] Sent: Monday, June 13, 2011 3:44 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] When does the Registry key/value get deleted during Uninstall Hi Rob, Thanks for reply~ see my first email, I do make sure the custom action is scheduled before RemoveRegistryValues. But the registry key is still get removed before my CA read it. :( thanks William L. On Mon, Jun 13, 2011 at 11:20 AM, Rob Mensching <r...@robmensching.com>wrote: > Deferred custom actions run during script execution based on their relation > to other actions in the MSI. > > In this case, it sounds like you want your custom action to be scheduled > Before="RemoveRegistryValues" ( > http://msdn.microsoft.com/en-us/library/aa371207(VS.85).aspx). > > On Tue, Jun 7, 2011 at 7:58 PM, John Bergman < > john.berg...@xpedienttechnologies.com> wrote: > > > I thought deferred custom uninstall actions ran after the normal > uninstall > > stuff... > > > > -----Original Message----- > > From: william lee [mailto:wele...@gmail.com] > > Sent: Tuesday, June 07, 2011 8:12 PM > > To: General discussion for Windows Installer XML toolset. > > Subject: [WiX-users] When does the Registry key/value get deleted during > > Uninstall > > > > Hi, > > There is a tricky problem bother me these days. I don't understand why > the > > certain Registry key/value got removed before my uninstall custom action > is > > called. > > we have a custom action scheduled after ProcessComponents, but before > > RemoveRegistryValues: > > InstallValidate > > InstallInitialize > > ProcessComponents > > MyCA > > .... > > RemoveRegistryValues > > > > we also defined Registry key/value in the MSI's Registry table. so it > will > > get created and removed during install and uninstall. > > MyCA is a deferred uninstall custom action will read from that Registry > > Key. > > > > but during our testing, when MyCA is get called, the Registry key is > > already deleted. > > Does ProcessComponents will delete the registry key?? I thought > > RemoveRegistryValues will do that job. > > > > > > thanks, > > William L. > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > Editing > > and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > -- > virtually, Rob Mensching - http://RobMensching.com LLC > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail recept...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users