If you are truly succeeding in launching your app from a deferred CA that
isn't impersonating, it is running in Session 0 on a non-UI desktop (and
without a user profile), so you can't ever see/interact with it. If you
place a "requireAdministrator" manifest for UAC in your app, you might
succeed in launching it the "normal" way whereupon it will independently
prompt for elevation on its own (if needed). Of course, that means it will
have to prompt for elevation every time it is ever run, which may not be
what you want.

<echo all the usual warnings about evil-reg, oh, sorry, self-reg>

-----Original Message-----
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Tuesday, November 10, 2009 5:26 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] So how does one run installed executable after the
install finishes?

Tony Juricic wrote:
> While there are quite a few samples of appropriate Custom Action
(including some posted here) none of them work for me. I either get an error
code 1631 or no error code (see log example below where it appears that app
was launched ok) but I see no application UI (it is a WPF app).
>
> Is there some definitive reference for this?
>
> I would prefer immediate action but it appears it must be deferred. 

I'd consider it unlikely that you can run a WPF app from a deferred 
custom action service.

>     <CustomAction Id=" CA_MYAction" Impersonate="no" HideTarget="no"
FileKey="ACTION.EXE" ExeCommand="/install" Execute="deferred"
Return="asyncNoWait" />
>   

<insert all the normal warnings about self-reg>

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



----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to