I tried to set up the property like you said, but it's still not
working. Can you see where I've gone wrong?
My checkbox control:
<Control Id="RemoveAllFiles"
Type="CheckBox"
X="25"
Y="200"
Height="17"
Width="320"
Text="$(loc.VerifyReadyDlgRemoveAllFiles)"
CheckBoxValue="TRUE"
TabSkip="no"
Property="REMOVEALLFILES"
Default="no">
<Condition Action="hide">NOT(WixUI_InstallMode =
"Remove")</Condition>
</Control>
My property definition:
<Property Id="REMOVEALLFILES" Secure="yes"/>
Feature:
<Feature Id="Feat_RemoveAllFiles"
Display='hidden'
Level="1">
<ComponentRef Id="Comp_RemoveAllFiles"/>
</Feature>
Component:
<Component Id="Comp_RemoveAllFiles" Guid="">
<Condition>REMOVEALLFILES AND (&Complete = 2)</Condition>
<RemoveFolder Id="RemoveRootFolder"
On="uninstall"
Property="INSTALLDIR"/>
</Component>
In a verbose log, I see that the feature is Unpublished. I'm not sure
what that means...
Executing op:
FeatureUnpublish(Feature=Feat_RemoveAllFiles,Parent=Complete,Absent=2,)
-----Original Message-----
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 2:50 PM
To: Rowland, Chris
Cc: [EMAIL PROTECTED]; [email protected]
Subject: Re: [WiX-users] Conditional RemoveFiles on Uninstall
[EMAIL PROTECTED] wrote:
> <Condition>RemoveAllFiles</Condition>
>
You need to use a secure public property so it's passed from the UI
sequence to the execute sequence. Otherwise, it evaluates as false.
--
sig://boB
http://bobs.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users