Milan Tomeš wrote:
> thats exactly what I've done but no effect. I guess there is a problem 
> with property SERVICEUSEGUARDIAN. This property is connected to check 
> box so if I unselect this check box this property become undefined and 
> value written into the registry is binary value with zero length. But 
> during uninstall it become defined with null value thought. So how to 
> store property value into registry to undef that property when is its 
> value read ?
>   

Well, first, I'd suggest using a verbose log to verify that's the 
problem: The InstallValidate action logs whether a component is going to 
be installed or uninstalled.

But the easiest solution is to include a boolean registry entry in the 
component itself; so write a "1" DWORD registry entry in one component 
and "0" in the other. Then use RegistrySearch to load that value.

Otherwise you can use a custom action to set another property to 
explicit values, rather than relying on RegistrySearch on a "null" value.

-- 
sig://boB
http://joyofsetup.com/



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to