I am sorry, this code does't work on rollback. I am the newer in WIX. but the follow code maybe can help you for rollback. URL:http://code.google.com/p/videobrowser/source/browse/trunk/VideoBrowser2/Setup/Setup.wxs?r=52<http://code.google.com/p/videobrowser/source/browse/trunk/VideoBrowser2/Setup/Setup.wxs?r=52> <!-- RegisterMceApp.exe on the system. --> <CustomAction Id="CA_RegisterMceApp_Unregister_Install_Cmd" Property="CA_RegisterMceApp_Unregister_Install" Value=""[REGISTERMCEAPP]" /u /allusers "[#Registration.xml]""/> <CustomAction Id="CA_RegisterMceApp_Unregister_Uninstall_Cmd" Property="CA_RegisterMceApp_Unregister_Uninstall" Value=""[REGISTERMCEAPP]" /u /allusers "[#Registration.xml]""/> <CustomAction Id="CA_RegisterMceApp_Register_Cmd" Property="CA_RegisterMceApp_Register" Value=""[REGISTERMCEAPP]" /allusers "[#Registration.xml]""/> <CustomAction Id="CA_RegisterMceApp_Rollback_Cmd" Property="CA_RegisterMceApp_Rollback" Value=""[REGISTERMCEAPP]" /u /allusers "[#Registration.xml]""/>
<CustomAction Id="CA_RegisterMceApp_Unregister_Install" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore" Impersonate="no"/> <CustomAction Id="CA_RegisterMceApp_Unregister_Uninstall" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore" Impersonate="no"/> <CustomAction Id="CA_RegisterMceApp_Register" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> <CustomAction Id="CA_RegisterMceApp_Rollback" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="rollback" Return="ignore" Impersonate="no"/> <InstallExecuteSequence> <Custom Action="CA_RegisterMceApp_Unregister_Install" After="CA_RegisterMceApp_Rollback"> <![CDATA[NOT REMOVE]]> </Custom> </InstallExecuteSequence> 2009/6/6 Rob Mensching <r...@wixtoolset.org> > That doesn't look like it will handle rollback. Doesn't look like it > will reference count those registry keys correctly either. > > zhihai guo wrote: > > 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 "[#Itest.reg]" > >>> /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 "[#Itest.reg]""/> > >>>> <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 > > > > > ------------------------------------------------------------------------------ > 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