I doubt you can "install" component during uninstall.
Your option is:
- on-uninstall deferred non-impersonated custom action scheduled after
RemoveRegistryValues and before InstallFinalize standard actions.
- As always with deferred custom actions, you need a rollback custom
action scheduled after your first custom action.
Regards,
Alex
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, February 08, 2008 3:23 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating a registry entry on uninstall
Hi,
I need to change a registry entry on install & restore the original value on
uninstall.
Problem I have is that Wix doesn't seem to want to write a registry entry on
uninstall - I have something like this:
<Component Id="xxx" Guid="xxx" Permanent="yes">
<Condition>INSTALLED AND REMOVE = "ALL"</Condition>
<!-- restore service in registry -->
<Registry Id='REG_ReEnableService'
Root='HKLM'
Key='SYSTEM\CurrentControlSet\Services\X'
Action='write'
Type='integer'
Name='Start'
Value='[BackupValue]'/>
</Component>
Any ideas?
/Nigel1
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users