Yan Sklyarenko [...@sitecore.net] already posted this about a week ago... I
may suggest you look at the thread that he is a part of entitled  "Launching
an application at the end of install (using Wix V2)

I'm just not sure if it's going to work in v3, as I haven't tested it.

http://www.tramontana.co.hu/wix/lesson8.php#8.6

(copy from site for reference)

8.6 Well Done
There is only one thing missing, a way to launch the application after the
installation. This will also show us how to use a checkbox and make
decisions depending on its state.



The newly added dialog looks like this:

<Dialog Id="ExitDlg" Width="370" Height="270" Title="[ProductName] [Setup]"
NoMinimize="yes">
The Finish button will have two tasks to carry out: first, to dismiss the
dialog itself (and with this, to end the installation package itself) and
second, to launch the application if the user chose to do so:

  <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56"
Height="17"
    Default="yes" Cancel="yes" Text="[ButtonText_Finish]">
    <Publish Event="EndDialog" Value="Return">1</Publish>
    <Publish Event='DoAction' Value='LaunchFile'>(NOT Installed) AND
(LAUNCHPRODUCT = 1)</Publish>
  </Control>
  ...
The checkbox control in the dialog box has both its initial setting
(CheckBoxValue) and an associated property (LAUNCHPRODUCT) that will be used
to read its state:

  <Control Id="Launch" Type="CheckBox" X="135" Y="120" Width="150"
Height="17"
    Property='LAUNCHPRODUCT' CheckBoxValue='1'>
    <Text>Launch [ProductName]</Text>
  </Control>
  ...
</Dialog>
The action published by the Finish button is an already familiar custom
action. Don't forget the Return attribute to make sure the installer can
close while the application stays running:

<CustomAction Id='LaunchFile' FileKey='FoobarEXE' ExeCommand=''
Return="asyncNoWait" />
The Exit dialog will be scheduled upon successful completion (see the next
section for details):

<InstallUISequence>
  ...
  <Show Dialog="ExitDlg" OnExit="success" />
</InstallUISequence>
Chechboxes and properties are linked but only when events occur, when the
user sets or clears them. Initially, without user interaction, nothing makes
the property receive the default value we've set in the Control tag. We have
to make sure we initialize the property ourselves:

<Property Id="LAUNCHPRODUCT">1</Property>
Before you build the SampleCustomUI6, make sure you replace the dummy .exe
file with something that will actually run.

And a common complaint: no, the checkbox can't have a transparent
background. If you have a bitmap in the background, it will be ugly, just
like in our example above. The only workaround is to reduce the width of the
checkbox to the actual box itself and to place an additional static text
(these can be made transparent) adjacent to it.

(end of copy from site)

-----Original Message-----
From: sandun css [mailto:sandun...@gmail.com] 
Sent: Friday, February 27, 2009 1:58 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Excute an application from wix

Hi,

I need to run an application after the user presses the finish button. Is
there a simple way to do that, in WiX v3?
----------------------------------------------------------------------------
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to