Thanks. It seems that both approaches - yours and mine - are not 
officially supported. It would be good if every call of type 
MsiSetProperty would update text controls that are connected to that 
property. From what I've seen so far in the documentation, the only ways 
that enable text updating involve ControlEvent, EventMapping and 
ActionText. So it's a matter of choosing the smaller evil. Maybe your 
suggestion works and I would rather use it, instead of creating and 
hiding as many text controls as I want to display.

I will post this question to the support.microsoft.com MSI forum and 
keep you posted.

Best regards,
    Calin



Bob Arnson wrote:
> Calin Iaru wrote:
>>     my MSI setup needs some custm actions that should modify a Static 
>> text control after pressing a Configure button. I have found a 
>> workaround for this problem by creating many such text controls on 
>> the same client area and position  and having one visible. When the 
>> Configure button is pressed, the text control is hidden and another 
>> one is shown. I would like to know if there are other ways to update 
>> a static text control from within the custom action. Ideally, I 
>> should get the visible window using GetForegroundWindow() and 
>> EnumChildWindows, then use that handle in a call to SetWindowText or 
>> SendMessage(..,  WM_SETTEXT, ..); these approaches does not work.
>>   
>
> You can try using properties in the static text. (e.g., "This is my 
> mode: [MYMODE]") But there's no guarantee that MSI refreshes the 
> property values while the dialog is running. Though MSI does use stock 
> Windows controls for the most part, there's no guarantee that normal 
> control messages will work, especially from a custom action.
>
> Otherwise, your current approach is probably the best one.
>


-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to