thats just what i was after....

many thanks

Mark
  ----- Original Message ----- 
  From: Andrew T Hopper 
  To: Mark Line ; wix-users@lists.sourceforge.net 
  Sent: Wednesday, August 08, 2007 3:52 PM
  Subject: RE: [WiX-users] launch on exit


  You can launch an application at the end of a setup in a couple of ways, but 
here are two:

   

  Include the following custom action definition and set a property (I named 
mine SOMEMAGICPROPERTY, I’m sure you can come up with a better name) and call 
this CA after the files have been placed on the hard drive:

   

  ...

  <!-- define the CA to launch our app. Note that it’s deferred since it needs 
to be executed after we’ve actually installed the files. -->
  <CustomAction Id="LaunchApplication" FileKey="F_MYAPPLICATIONSID" 
ExeCommand="" Execute="deferred" Impersonate="yes" Return="asyncNoWait"/>

  ...

  <InstallExecuteSequence>

    ...

    <Custom Action="LaunchApplication" 
After="InstallFiles"><![CDATA[SOMEMAGICPROPERTY]]></Custom>

    ...

  </InstallExecuteSequence>

  ...

   

  If you’re already using WixUI, another way would be to leverage Bob Arnson’s 
addition of the optional check box to ExitDialog and have the app launched when 
the user clicks the Finish button:

   

  ...

  <!-- define the CA to launch our app. Note that it’s immediate since it’ll be 
executed from the UI. -->
  <CustomAction Id="LaunchApplication" FileKey="F_MYAPPLICATIONSID" 
ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait"/>

  ...

  <!-- set the text we’ll display next to the launch check box. -->
  <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch 
<<application name>> " />
  ...

  <!-- Attach a handler to the Finish button on the ExitDialog dialog that will 
invoke our CA. -->
  <UI>
    <Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" 
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX</Publish>
  </UI>
  ...

   

  Hope this helps!

  -Andy Hopper



------------------------------------------------------------------------------
  New home for Mom, no cleanup required. All starts here. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to