Hi Christopher,
Thanks for helping me on this. I'm attaching a .zip file (just rename it) with
the log and a simple sample.
The property I'm talking about is "CHECKEDVERSION1" and "CHECKEDVERSION2". In
the log attached, I have gone to the Custom button, and unselected
"CHECKEDVERSION1", however, it still runs the custom action for it even though
I check for the CHECKEDVERSION1 value. Note that I've only tested/exercised
going through the "Custom" button, but I also need to make sure the other ones
work as well.
The reason why "CHECKEDVERSION1" and "CHECKEDVERSION2" are set from the
products.wxs is because in the real installer, I do some checks and if they
pass, we want to have those checkboxes on by default, and besides, for the
"Typical" and "Complete", we'd like for both VERSION to be installed without
having to go through the Custom dialog.
For convenience, the "build.bat" in the .zip builds the .msi cleanly and runs
the .msi (creates a log), it then uninstalls it right away - i've done this for
quick turnarounds. The only gotcha is the path to candle/light, you will
probably have to replace the path to them.
Let me know if you receive the attachment (not sure if it will go through with
the mailing list or not).
Any help on this is much appreciated!
> Date: Sat, 28 Aug 2010 18:13:24 -0700
> From: chr...@deploymentengineering.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Wix properties not being persisted from a WXI
> (<Control>) to a WXS (<InstallExecuteSequence>)
>
> Can you send a log file?
>
> Christopher Painter, Author of Deployment Engineering Blog
> Have a hot tip, know a secret or read a really good thread that deserves
> attention? E-Mail Me
>
>
>
> ----- Original Message ----
> From: Rafael Campana <raficamp...@hotmail.com>
> To: wix-users@lists.sourceforge.net
> Sent: Sat, August 28, 2010 1:40:27 PM
> Subject: [WiX-users] Wix properties not being persisted from a WXI
> (<Control>)
> to a WXS (<InstallExecuteSequence>)
>
>
> Hello,
>
> I hope you can help me with the following WIX issue:
>
> In my main.wxs, I initialize "MYPROPERTY" that then in ui.wxi, I put up a
> dialog
> box with a checkbox (that is checked/enabled from the MYPROPERTY that I've
> setup
> in the .wxs). I can verify that by
>
> unchecking the checkbox, it does flip the value because I enable/disable the
> "Next" button depending on the MYPROPERTY value - I have more than one
> checkbox
> BTW.
>
> The problem is that if I uncheck the checkbox in the UI when running the .msi
> produced, the Custom Action is ran no matter if the checkbox is checked or
> unchecked (as if the "MYPROPERTY" is always 1, see the condition in ).
>
> How do I make the checkbox that sets the MYPROPERTY value to actually persist
> to
> the the Custom Action?
>
> Any help is appreciated.
>
> Thanks.
>
> MAIN.WXS:
>
>
> <Property Id='MYPROPERTY'>1</Property>
> <?include ./ui.wxi ?>
> ...
> <InstallExecuteSequence>
> <Custom Action="MyCustomAction" After="InstallFiles">
> (NOT Installed) AND (MYPROPERTY = 1)
> </Custom>
> ...
> ui.wxi:
>
>
> <UI Id='xxx'>
> ...
> <Dialog
> Id="Choose"
> Title="My Setup">
> <Control
> Id="MyCheckBox"
> Type="CheckBox"
> CheckBoxValue="1"
> Property="MYPROPERTY"
> />
> ...
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users