Re: [WiX-users] Conditional services install

2007-06-06 Thread Bob Arnson
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


Re: [WiX-users] Conditional services install

2007-06-05 Thread Milan Tomeš
Hi Bob,

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 ?

Another pieces of my WiX code:


  



  

  





  

  


Any ideas ?

Thanks

Milan

Bob Arnson napsal(a):
> Milan Tomeš wrote:
>> Installation of these services is all ok and unistall too - but only 
>> when I don't make any changes in standard property values. When I 
>> don't want to install Guardian (so SERVICEUSEGUARDIAN isn't set) 
>> installation works but unistall leave service alive (no 
>> uninstallation uccurs).
>>   
>
> Sounds like you need to persist the property values (e.g., in the 
> registry) and load them during uninstall so the right values are 
> available to properly uninstall.
>

-
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


Re: [WiX-users] Conditional services install

2007-06-05 Thread Bob Arnson
Milan Tomeš wrote:
> Installation of these services is all ok and unistall too - but only 
> when I don't make any changes in standard property values. When I don't 
> want to install Guardian (so SERVICEUSEGUARDIAN isn't set) installation 
> works but unistall leave service alive (no uninstallation uccurs).
>   

Sounds like you need to persist the property values (e.g., in the 
registry) and load them during uninstall so the right values are 
available to properly uninstall.

-- 
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


[WiX-users] Conditional services install

2007-06-05 Thread Milan Tomeš
Hi,

I'm trying to make installation with 1 or 2 services (depends on user 
choices).
I have following components:

  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"superserver") AND (SERVERAUTORUN) AND (SERVICEUSEGUARDIAN <> 
"1")



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"superserver") AND ((NOT SERVERAUTORUN) OR (SERVICEUSEGUARDIAN = 
"1"))



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"classicserver") AND (SERVERAUTORUN) AND (SERVICEUSEGUARDIAN <> 
"1")



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"classicserver") AND ((NOT SERVERAUTORUN) OR (SERVICEUSEGUARDIAN = 
"1"))



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"superserver") AND (SERVERAUTORUN) AND (SERVICEUSEGUARDIAN = 
"1")



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"superserver") AND (NOT SERVERAUTORUN) AND (SERVICEUSEGUARDIAN = 
"1")



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"classicserver") AND (SERVERAUTORUN) AND (SERVICEUSEGUARDIAN = 
"1")



  
  
(SERVERRUNAS = "service") AND (SERVERTYPE = 
"classicserver") AND (NOT SERVERAUTORUN) AND (SERVICEUSEGUARDIAN = 
"1")



  

Installation of these services is all ok and unistall too - but only 
when I don't make any changes in standard property values. When I don't 
want to install Guardian (so SERVICEUSEGUARDIAN isn't set) installation 
works but unistall leave service alive (no uninstallation uccurs).

Anybody have idea what i'm doing wrong ?

Thanks

Milan

-
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