I've triggered it from the dialog using DoAction:
<Control Id="Install" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="&Next >">
<Publish Event="NewDialog"
Value="[WixUI_RMSPortInput_Next]">1</Publish>
<Publish Event="DoAction" Value="pingISAServer">1</Publish>
</Control>
I still haven't taclked putting the return value in a property, but i
notice that you don't tell CAQuietExec to use QtExecCmdLine, so when i
came to adding a second command line call I hit a wall, is there a way
to specify what property should be used by CAQuietExec?
Simon
-----Original Message-----
From: Simon Topley
Sent: 22 September 2009 15:31
To: [email protected]
Subject: RE: Ping Server from dialog
Ok I have it running ping using CAQuietExec, I think this maybe a step
in the right direction. I just need to deal with triggering it from a
dialog button click and capturing the return value to inspect, so I can
display an appropriate message.
<Property Id="QtExecCmdLine" Value=""ping.exe" /n 1
[ISASERVER]"/>
<CustomAction Id="pingServer" BinaryKey="wixca"
DllEntry="CAQuietExec" Execute="immediate" Return="check"/>
<Binary Id="wixca" src="wixca.dll"/>
<InstallExecuteSequence>
<Custom Action='pingServer' After="InstallFinalize">NOT
Installed</Custom>
</InstallExecuteSequence>
Disclaimer: This electronic communication and its attachments may contain
confidential, proprietary and/or legally privileged information which are for
the sole use of the intended recipient. If you are not the intended recipient,
any use, distribution, or reproduction of this communication is strictly
prohibited and may be unlawful; please contact the sender and delete this
communication. MWH does not warrant or make any representation regarding this
transmission whatsoever nor does it warrant that it is free from viruses or
defects, correct or reliable. MWH is not liable for any loss or damage that
occurs as a result of this communication entering your computer network.
The views expressed in this message are not necessarily those of MWH. This
communication cannot form a binding agreement unless that is the express intent
of the parties and they are authorized to make such an agreement. MWH reserves
all intellectual property rights contained in this transmission. MWH reserves
the right to monitor any electronic communication sent or received by its
employees. This communication may come from a variety of legal entities within
or associated with the MWH group.
For a full list of details for these entities please see our website at
www.mwhglobal.com. Where business communications relate to the MWH UK Limited
entity, the registered office is Terriers House, 201 Amersham Rd, High Wycombe,
HP13 5AJ Tel: 01494 526240 and the company is registered in England as
registration number 01188070. Where business communications relate to the MWH
Constructors Limited entity, the registered office is as above and the company
is registered in England as registration number 04635724. Where business
communications relate to the MWH Soft Limited entity, the registered office is
as above and the company is registered in England as registration number
6975921.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users