Do this custom atction before RemoveFiles.
</InstallExecuteSequence>
...   <Custom Action="CA_SetRegistry_Cmd" Before="RemoveFiles">
   <![CDATA[REMOVE]]>
 </Custom>
...
</InstallExecuteSequence>



2009/6/5 Rob Mensching <r...@wixtoolset.org>

> How does that handle rollback and uninstall?
>
> zhihai guo wrote:
> > Hi.
> >
> > I have resolved this problem.
> >
> > <CustomAction Id="CA_SetRegistry_Cmd" Property="CA_SetRegistry"
> > Value="C:\windows\system32\reg.exe  import &quot;[#Itest.reg]&quot;
> > /reg:64"/>
> >
> > ^^^^^^^
> >
> > Thanks.
> > 2009/6/5 zhihai guo <zhh...@gmail.com>
> >
> >
> >> Hi every one:
> >>
> >> I have create a custom action to restore registry value when uninstall
> that
> >> is modified on install.
> >>
> >> This is the element of CustomAction:
> >>  <CustomAction Id="CA_SetRegistry_Cmd" Property="CA_SetRegistry"
> >> Value="C:\windows\system32\reg.exe  import &quot;[#Itest.reg]&quot;"/>
> >>  <CustomAction Id="CA_SetRegistry" BinaryKey="WixCA"
> DllEntry="CAQuietExec"
> >> Execute="deferred" Return="ignore" Impersonate="no"/>
> >> This is the test.reg
> >>
> >> Windows Registry Editor Version 5.00
> >>
> >> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media
> >> Center\Start Menu]
> >> "HideDVD"=dword:00000000
> >>
> >> But the
> >>
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Media
> >> Center\Start Menu\HideDVD is set to 0 on 64bit system.
> >>
> >> I have set the package to 64bit.
> >>
> >> Who can tell me why?  and How to do? I want to set
> >> the  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media
> >> Center\Start Menu\HideDVD on uninstall.
> >>
> >> Thanks.
> >>
> >>
> >
> ------------------------------------------------------------------------------
> > OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> > looking to deploy the next generation of Solaris that includes the latest
> > innovations from Sun and the OpenSource community. Download a copy and
> > enjoy capabilities such as Networking, Storage and Virtualization.
> > Go to: http://p.sf.net/sfu/opensolaris-get
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to