<CustomAction Id="SetDefaultUser" Property="USER" Value="$(var.DEFAULTUSER)" /> <CustomAction Id="SetDefaultPassword" Property="PASSWORD" Value="$(var.DEFAULTPASSWORD)" />
<Control Id="UserDefaultsCheckBox" Type="CheckBox" CheckBoxValue="1" X="18" Y="189" Width="348" Height="12" Property="USEDEFAULTS" Text="Use Default Values" TabSkip="no" Integer="yes"> <!-- <Publish Property="USER" Value="$(var.DEFAULTUSER)">USEDEFAULTS = 1</Publish> <Publish Property="PASSWORD" Value="$(var.DEFAULTPASSWORD)">USEDEFAULTS = 1</Publish> --> <Publish Event="DoAction" Value="SetDefaultUser">USEDEFAULTS = 1</Publish> <Publish Event="DoAction" Value="SetDefaultPassword">USEDEFAULTS = 1</Publish> </Control> Above is a snippet of what I am trying to do. The dialog has a User and a Password field on it as well as the checkbox for using defaults. I am trying to change the values displayed on the dialog but what seems to happen is the values (properties) are modified but the changes are not reflected on the screen unless I move off the dialog and back on. I tried to set the properties on the text controls that I am trying to modify as well as just setting them to themselves <Publish Property="USER" Value="[USER]">USEDEFAULTS = 1</Publish> as you discussed in your blog. What am I doing wrong? -----Original Message----- From: Richard [mailto:legal...@xmission.com] Sent: Monday, November 23, 2009 4:26 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Refresh dialog upon checking checkbox In article <d91a1dd8a8f2ba459644b8f3b7e517ddad079cd...@exvmbx015-4.exch015.msoutlookonline.net>, Tom Crozier <tcroz...@rackwise.com> writes: > All - > Is there a way to refresh a dialog when checking a checkbox? > > I have a dialog with a checkbox control on it to give the user the ability to use the default options. When selected I have tried adding Publish Property to reset the other control values back to defaults as well as calling a custom ac tion via DoAction. While these do reset the values back to the default ones it does not update the dialog so the user still sees the old ones. If you select B ack then Next you see the values but how can I get the dialog to refresh? What does the custom action do? Does it change properties? As a debugging aid, try removing the custom action from the published events. Does it not update properly? If so, then you're falling victim to the way Windows Installer doesn't recognize property changes properly after calling a custom action in the UI. See this blog post I wrote for a workaround: UI Custom Action Guidelines <http://legalizeadulthood.wordpress.com/2009/10/23/ui-custom-action-guidelines/> -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/> Legalize Adulthood! <http://legalizeadulthood.wordpress.com> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.425 / Virus Database: 270.14.67/2506 - Release Date: 11/23/09 07:52:00 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users