Re: [WiX-users] launch on exit

2010-03-08 Thread Andy.Kruger

I have tried to implement the same as follows. But it gives me an error
stating as follows:

Error 1723. There is a problem with this Windows Installer package. A DLL
required for this install to complete could not be run. Contact your support
personnel or package vendor. Action LaunchUpdate, entry: WixShellExec

here is the code snippet. What am i missing here?

Binary Id=WixCA SourceFile=C:\data\wixca.dll /

CustomAction Id=SetLaunchApplicationTarget
Property=WixShellExecTarget Value=[INSTALLDIR]EnUpd.exe /
CustomAction Id=LaunchUpdate BinaryKey=WixCA
DllEntry=WixShellExec Impersonate=no /

UI
  
  Dialog Id=ExitDialog Width=370 Height=270
Title=$(loc.ExitDialog_Title)
Control Id=Finish Type=PushButton X=236 Y=243 Width=56
Height=17 Default=yes Cancel=yes Text=$(loc.WixUIFinish)
  Publish Event=EndDialog Value=Return1/Publish

Publish Event=DoAction
Value=SetLaunchApplicationTargetENABLEUPDATES AND NOT Installed/Publish
  Publish Event=DoAction Value=LaunchUpdateENABLEUPDATES AND
NOT Installed/Publish

  ..

/UI



-
Andy
MSI Developer
Schneider Electric:working:
-- 
View this message in context: 
http://n2.nabble.com/launch-on-exit-tp703850p4694145.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2010-03-08 Thread Pally Sandher
Add WiXUtilExtension as a Project reference (or supply it to light using
the -ext switch if you don't use a wixproj in Visual Studio)  remove
your Binary Element below as it's not needed in WiX 3.0/3.5. 

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-Original Message-
From: Andy.Kruger [mailto:appr...@gmail.com] 
Sent: 08 March 2010 09:09
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] launch on exit


I have tried to implement the same as follows. But it gives me an error
stating as follows:

Error 1723. There is a problem with this Windows Installer package. A
DLL required for this install to complete could not be run. Contact your
support personnel or package vendor. Action LaunchUpdate, entry:
WixShellExec

here is the code snippet. What am i missing here?

Binary Id=WixCA SourceFile=C:\data\wixca.dll /

CustomAction Id=SetLaunchApplicationTarget
Property=WixShellExecTarget Value=[INSTALLDIR]EnUpd.exe /
CustomAction Id=LaunchUpdate BinaryKey=WixCA
DllEntry=WixShellExec Impersonate=no /

UI
  
  Dialog Id=ExitDialog Width=370 Height=270
Title=$(loc.ExitDialog_Title)
Control Id=Finish Type=PushButton X=236 Y=243
Width=56
Height=17 Default=yes Cancel=yes Text=$(loc.WixUIFinish)
  Publish Event=EndDialog Value=Return1/Publish

Publish Event=DoAction
Value=SetLaunchApplicationTargetENABLEUPDATES AND NOT
Installed/Publish
  Publish Event=DoAction Value=LaunchUpdateENABLEUPDATES
AND NOT Installed/Publish

  ..

/UI



-
Andy
MSI Developer
Schneider Electric:working:
--
View this message in context:
http://n2.nabble.com/launch-on-exit-tp703850p4694145.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2010-03-08 Thread Andy.Kruger

Sorry my bad. I did not realize that ShellExecute is not available with WiX
2.0
I'm building the installer using WiX 2.0. How do I fix the issue in this
scenario?

Thanks for your reply

-
Andy
MSI Developer
Schneider Electric:working:
-- 
View this message in context: 
http://n2.nabble.com/launch-on-exit-tp703850p4694611.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2010-03-08 Thread Pally Sandher
Upgrade to WiX 3.0/3.5 or write your own ShellExec custom action.


Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 

-Original Message-
From: Andy.Kruger [mailto:appr...@gmail.com] 
Sent: 08 March 2010 11:32
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] launch on exit


Sorry my bad. I did not realize that ShellExecute is not available with
WiX 2.0 I'm building the installer using WiX 2.0. How do I fix the issue
in this scenario?

Thanks for your reply

-
Andy
MSI Developer
Schneider Electric:working:
--
View this message in context:
http://n2.nabble.com/launch-on-exit-tp703850p4694611.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2010-03-04 Thread Andy.Kruger

I'm trying to launch an exe this way on windows Vista with UAC enabled. But
the exe doesn't seems to be launching. Mine is a c# exe and I'm using an
admin manifest to tell that it requires elevation. Shouldn't it show the UAC
dialog with Allow and Cancel options upon launch??

-
Andy
MSI Developer
Schneider Electric:working:
-- 
View this message in context: 
http://n2.nabble.com/launch-on-exit-tp703850p4679255.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2010-03-04 Thread Sascha Beaumont
What do you mean by this way? ;)

Here's a working fragment copied straight from our current release...

Fragment
CustomAction Id=SetLaunchApplicationTarget
Property=WixShellExecTarget Value=[#$(var.launchapplication)] /
CustomAction Id=LaunchApplication BinaryKey=WixCA
DllEntry=WixShellExec Impersonate=no /

UI Id=LaunchApplication
Publish Dialog=ExitDialog Control=Finish 
Event=DoAction
Value=SetLaunchApplicationTarget
![CDATA[NOT Installed]]
/Publish
Publish Dialog=ExitDialog Control=Finish 
Event=DoAction
Value=LaunchApplication
![CDATA[NOT Installed]]
/Publish
/UI
/Fragment



On Fri, Mar 5, 2010 at 4:55 PM, Andy.Kruger appr...@gmail.com wrote:

 I'm trying to launch an exe this way on windows Vista with UAC enabled. But
 the exe doesn't seems to be launching. Mine is a c# exe and I'm using an
 admin manifest to tell that it requires elevation. Shouldn't it show the UAC
 dialog with Allow and Cancel options upon launch??

 -
 Andy
 MSI Developer
 Schneider Electric:working:
 --
 View this message in context: 
 http://n2.nabble.com/launch-on-exit-tp703850p4679255.html
 Sent from the wix-users mailing list archive at Nabble.com.

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] launch on exit triggered even when uninstall

2008-10-31 Thread s zheng
Hi,

From the tutorial http://www.tramontana.co.hu/wix/, section 8.6, I have
learnt how to launch an application:

  *Control* Id=Launch Type=CheckBox X=135 Y=120 Width=150 Height=17
Property='LAUNCHPRODUCT' CheckBoxValue='1'
*Text*Launch [ProductName]/*Text*
  /*Control*


However, this launch operation checkbox is still on the exit dialog even
when uninstall. Is there a way to control the display like if statement so
that the checkbox only shows at installing time?

Thanks,

Shibo
-
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=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit triggered even when uninstall

2008-10-31 Thread Rob Hamflett
Underneath the Text element (still inside the Control element) you want 
something like:
Condition Action=hide![CDATA[(InstallMode=Repair) OR 
(InstallMode=Remove) OR 
(InstallMode=Change)]]/Condition

Rob

s zheng wrote:
 Hi,
 
From the tutorial http://www.tramontana.co.hu/wix/, section 8.6, I have
 learnt how to launch an application:
 
   *Control* Id=Launch Type=CheckBox X=135 Y=120 Width=150 
 Height=17
 Property='LAUNCHPRODUCT' CheckBoxValue='1'
 *Text*Launch [ProductName]/*Text*
   /*Control*
 
 
 However, this launch operation checkbox is still on the exit dialog even
 when uninstall. Is there a way to control the display like if statement so
 that the checkbox only shows at installing time?
 
 Thanks,
 
 Shibo
 -
 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=100url=/


-
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=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit triggered even when uninstall

2008-10-31 Thread Chad Miles
Look in the Wix chm for...

Control
  Condition/Condition
/Control
On Fri, Oct 31, 2008 at 12:40 PM, s zheng [EMAIL PROTECTED] wrote:

 Hi,

 From the tutorial http://www.tramontana.co.hu/wix/, section 8.6, I have
 learnt how to launch an application:

  *Control* Id=Launch Type=CheckBox X=135 Y=120 Width=150
 Height=17
Property='LAUNCHPRODUCT' CheckBoxValue='1'
*Text*Launch [ProductName]/*Text*
  /*Control*


 However, this launch operation checkbox is still on the exit dialog even
 when uninstall. Is there a way to control the display like if statement
 so
 that the checkbox only shows at installing time?

 Thanks,

 Shibo
 -
 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=100url=/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

-
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=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit triggered even when uninstall

2008-10-31 Thread shibo

Thanks for the replies. Condition Action=hideInstalled/Condition works. 

The statement: Condition Action=hide![CDATA[(InstallMode=Repair) OR
(InstallMode=Remove) OR (InstallMode=Change)]]/Condition has no
effect, still displaying the checkbox. Though I like the clearer logic it
brings. FYI, I am using WiX 2.0.


-- 
View this message in context: 
http://n2.nabble.com/%22launch-on-exit%22-triggered-even-when-uninstall-tp1437612p1437843.html
Sent from the wix-users mailing list archive at Nabble.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=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] launch on exit

2007-09-04 Thread Anidil

How do we make this application to launch only if the check box is checked?
Guess in this case it wont validate and execute based on the check box
status..correct me if i'm wrong


Andrew T Hopper wrote:
 
 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=LaunchApplicationWIXUI_EXITDIALOGOPTIONALCHECKBOX/Publish/UI...
  
 Hope this helps!
 -Andy Hopper
 _
 Learn. Laugh. Share. Reallivemoms is right place!
 http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/launch-on-exit-tf4235462.html#a12476612
Sent from the wix-users mailing list archive at Nabble.com.


-
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


[WiX-users] launch on exit

2007-08-08 Thread Mark Line
Is there any way to start an exe on exit? i've seen some installers that start 
the application on exit? does anyone know how this was done?

Thanks in advance

Mark-
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


Re: [WiX-users] launch on exit

2007-08-08 Thread Schrieken, Rene
Does this do what you want? It launches a browser when the install
finishes

 

http://www.tramontana.co.hu/wix/lesson6.php#6.2

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Line
Sent: Wednesday, August 08, 2007 12:30 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] launch on exit

 

Is there any way to start an exe on exit? i've seen some installers that
start the application on exit? does anyone know how this was done?

 

Thanks in advance

 

Mark



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
-
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


Re: [WiX-users] launch on exit

2007-08-08 Thread Mark Line
not really, i want something to be lunched after the installer is closed.
  - Original Message - 
  From: Schrieken, Rene 
  To: Mark Line ; wix-users@lists.sourceforge.net 
  Sent: Wednesday, August 08, 2007 12:14 PM
  Subject: RE: [WiX-users] launch on exit


  Does this do what you want? It launches a browser when the install finishes

   

  http://www.tramontana.co.hu/wix/lesson6.php#6.2

   

   


--

  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Line
  Sent: Wednesday, August 08, 2007 12:30 PM
  To: wix-users@lists.sourceforge.net
  Subject: [WiX-users] launch on exit

   

  Is there any way to start an exe on exit? i've seen some installers that 
start the application on exit? does anyone know how this was done?

   

  Thanks in advance

   

  Mark




  This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
-
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


Re: [WiX-users] launch on exit

2007-08-08 Thread Andrew T Hopper
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=LaunchApplicationWIXUI_EXITDIALOGOPTIONALCHECKBOX/Publish/UI...
 
Hope this helps!
-Andy Hopper
_
Learn. Laugh. Share. Reallivemoms is right place!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us-
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


Re: [WiX-users] launch on exit

2007-08-08 Thread Mark Line
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=LaunchApplicationWIXUI_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