I figured out how to do it:-

When the user selects the browse button the code I sent previously is
run and sets the LFM_SERVER_ROOT property. I then publish a property
change event as described on MSDN
(http://msdn.microsoft.com/en-us/library/aa371695(VS.85).aspx) and the
control I want to change subscribes to this event and the text will be
updated. I noticed that if you changed the text in the control before
running the custom action then the update didn't work so I have disabled
it so the user can only change it via the custom action, which is okay
in my scenario.

<Control Id="Browse" Type="PushButton" X="260" Y="88" Width="65"
Height="15" Text="&amp;Browse..." TabSkip="no">
<Publish Event="DoAction" Value="NetworkBrowserDialog" >1</Publish>
      <Publish Event="[LFM_SERVER_ROOT]"
Value="[LFM_SERVER_ROOT]">1</Publish>
</Control>
<Control Id="MachineName" Type="Edit" X="57" Y="67" Width="270"
Height="16" Property="LFM_SERVER_ROOT" TabSkip="no" Disabled="yes" >
<Subscribe Event="LFM_SERVER_ROOT" Attribute="Text"/>  
</Control>

Christopher Matthews

-----Original Message-----
From: Chris Matthews [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2008 08:39
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action Setting a Control value

Hi,

I do tie the control to the LFM_Server_Root property, but it still
doesn't update.

What I want to do is on a button click fire a custom control. Within
that custom control set a property and when the custom control has
finished I want this value to appear on the dialog that the button was
pressed on. Any ideas?

Christopher Matthews

-----Original Message-----
From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: 21 November 2008 20:47
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action Setting a Control value

Chris Matthews wrote:
> Within the Custom action I set LFM_SERVER_ROOT and I want this value
to
> be written to the MachineName control when I return back from the
action
> how is this done?
>   

MSI supports updating a control "live" only for the property it's tied
to.

-- 
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Disclaimer and Confidentiality Notice
This email and any attachment are intended only for the use of the
individual or entity to which it is directed and may contain information
which is confidential.  Access, copying or re-use of information in or
attached to this email by anyone else other than the intended recipient
is strictly prohibited.  If you have received this communication and you
are not the intended recipient or the employee or agent responsible for
delivering this email to the intended recipient, please inform IRIS on
telephone number 01753 212200 and then delete this email and any
attachments from your system.
 
IRIS makes no representation or warranty as to the absence of viruses in
this email or any attachments and we may monitor emails sent to and from
our server.
Any views or opinions presented in this email or attachment are solely
those of the author and do not necessarily represent those of IRIS, its
parent, associates, subsidiaries or affiliates, unless otherwise
expressly indicated.
 
Laserform International Limited  |  Registered in England: 2403332  |
Registered office: Integra House, 138-140 Alexandra Road, London, SW19
7JY

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Disclaimer and Confidentiality Notice
This email and any attachment are intended only for the use of the individual 
or entity to which it is directed and may contain information which is 
confidential.  Access, copying or re-use of information in or attached to this 
email by anyone else other than the intended recipient is strictly prohibited.  
If you have received this communication and you are not the intended recipient 
or the employee or agent responsible for delivering this email to the intended 
recipient, please inform IRIS on telephone number 01753 212200 and then delete 
this email and any attachments from your system.
 
IRIS makes no representation or warranty as to the absence of viruses in this 
email or any attachments and we may monitor emails sent to and from our server.
Any views or opinions presented in this email or attachment are solely those of 
the author and do not necessarily represent those of IRIS, its parent, 
associates, subsidiaries or affiliates, unless otherwise expressly indicated.
 
Laserform International Limited  |  Registered in England: 2403332  |  
Registered office: Integra House, 138-140 Alexandra Road, London, SW19 7JY

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to