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: <Property Id="SERVICEUSEGUARDIAN"> <RegistrySearch Id="ServiceUseGuardian" Key="SOFTWARE\Firebird Project\Firebird\2.0" Root="HKLM" Type="raw" Name="ServiceUseGuardian" /> </Property> <Registry Key="SOFTWARE" Root="HKLM"> <Registry Key="Firebird Project" Action="createKeyAndRemoveKeyOnUninstall"> <Registry Key="Firebird" Action="createKeyAndRemoveKeyOnUninstall"> <Registry Key="2.0" Action="createKeyAndRemoveKeyOnUninstall"> <Registry Name="ServerType" Type="string" Value="[SERVERTYPE]" /> <Registry Name="RunAs" Type="string" Value="[SERVERRUNAS]" /> <Registry Name="ServiceName" Type="string" Value="[SERVICENAME]" /> <Registry Name="ServiceFriendlyName" Type="string" Value="[SERVICEFRIENDLYNAME]" /> <Registry Name="ServiceUseGuardian" Type="string" Value="[SERVICEUSEGUARDIAN]" /> </Registry> </Registry> </Registry> </Registry> 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