I'm sorry, I'm having trouble wrapping my head around how this subscribe model 
works, and also difficulty figuring out how to fire the appropriate events from 
within the CustomAction (currently in VBScript.)  Can you possibly offer a 
small bit of XML to demonstrate your thinking? 

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Thursday, October 22, 2009 3:10 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Using a CustomAction to modify a dialog

I've never tried this, but if the text control subscribes to the actiondata
event, could your custom action send an actiondata event to it?

Let us know how that works.

-----Original Message-----
From: Dan Giambalvo [mailto:danie...@microsoft.com] 
Sent: Thursday, October 22, 2009 2:56 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Using a CustomAction to modify a dialog

I'm trying to use a CustomAction to do some evaluation, and modify an
on-screen Windows Installer dialog.  The scenario is this:

1)      User enters some text in an edit control

2)      User clicks a button which invokes a custom action to evaluate the
entered text

3)      Custom action completes, and some new text is shown to the user *in
the same dialog*

I've envisioned two ways of building this:

1)      (ideal) Some Text Control lives on the dialog with Text= some
property.  The CustomAction modifies the property value, and the text
control displays the new value.

2)      I create a text control for each possible string I want to show all
overlapping.  The CustomAction either hides/shows the appropriate control,
or sets some property which triggers a bunch of show/hide Conditions on each
text control.

The problem I'm running into is that I can't seem to get Windows Installer
to re-evaluate any properties after the custom action ends.  For example, I
have a button that runs my custom action and it changes the property, but
the UI doesn't update. If I spawn a dialog however (by hitting cancel for
example) then the UI updates.

Does anyone know of a clever way to tickle Windows Installer into
re-evaluating properties after the CustomAction ends?

Thanks
-Dan
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to