Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 04-14-2010, 07:01 PM   #1 (permalink)
Vadim Rapp
Guest
 
Posts: n/a
Default Setting property from within custom action does not refresh controls

Hello,

if on the dialog I change the value of a property directly, such as by edit
field, or by event SetProperty linked to a button, then other controls on
this dialog sourced from this property show the new value immediately, and
buttons with conditions depending on this property change their state
immediately (for example, to enable/disable button "next"). But if I set the
property from within custom action, for instance from vbscript using Session
object, then other controls are not refreshed. Is there a way to "push" the
refresh from within custom action?

To reproduce:

In the installation, create property MYPROPERTY with the initial value 0.

On a dialog, put button 1, and specify event [MYPROPERTY] with argument 1
Put another button that publishes DoAction, action type 38 being vbscript

Session.Property("MYPROPERTY") = 1

On the same dialog, create textbox with its text being [MYPROPERTY].

Press button1, and the textbox immediately changes from 0 to 1. Press button
2, and the textbox does not change - though if you go to the next dialog and
then return, it will show 1.

thanks,
Vadim Rapp


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:28 AM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com