I'm trying to add a dialog to the uninstall sequence. The dialog allows the user to select additional items to remove when uninstalling. I'm having trouble getting the checkbox values to trigger a custom action. Here is the xml i have...
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <UI> <Dialog Id="RemoveAllDlg" Width="370" Height="270" Title="[ProductName] Setup"> <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Hidden="no" Disabled="no" Text="Next" /> <Control Id="RemoveTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Remove [ProductName] User Data" /> <Control Id="RemoveText" Type="Text" X="25" Y="70" Width="320" Height="24" NoPrefix="yes" Text="Select the additional user data items to remove." /> <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel"> <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish> </Control> <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="Back" /> <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" /> <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> <Control Id="RemoveConfigCheckBox" Type="CheckBox" Width="273" Height="17" X="52" Y="105" CheckBoxValue="1" Property="RemoveConfig" Text="Remove all configuration data" /> <Control Id="RemoveSamplesCheckBox" Type="CheckBox" Width="278" Height="17" X="52" Y="128" CheckBoxValue="1" Property="RemoveSamples" Text="Remove sample data"/> </Dialog> </UI> <!-- Install Sequences --> <InstallExecuteSequence> <Custom Action="RemoveUserData" Before="RemoveFiles">Installed AND (RemoveConfig = "1" OR RemoveSamples = "1")</Custom> </InstallExecuteSequence> </Fragment> <Fragment> <CustomAction Id="RemoveUserData" FileKey="Program.exe" ExeCommand="/RemoveSamples:[RemoveSamples] /RemoveConfig:[RemoveConfig]" Execute="deferred" Return="check" Impersonate="yes" /> </Fragment> </Wix> The problem is that the condition never evals to true. I've verified, via the log file, that RemoveConfig and RemoveSamples are being set. Is there some other way to trigger the custom action based on the checkbox values? thanks, ~ Paul -- ~ Paul ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users