It gets worse. Even if app is not a WPF app (or a .NET app), it is really not correct, regarding the expected UI, to run deferred action launching an exe as the part of InstallExecuteSequence, like:
... <Custom Action="CA_MYAction" After="MsiPublishAssemblies"> <![CDATA[UILevel>4 AND (InstallMode<>"Remove") AND (InstallMode<>"Repair") AND (InstallMode<>"Change")]]> </Custom> </InstallExecuteSequence> What happens is that executable is run but Exit Dialog sits there, waiting for user to press Finish button. Expected UI is that user presses Finish button and then installed executable is run. Running exes like NOTEPAD that were found during file search like: <Property Id="NOTEPADEXE"> <DirectorySearch Id="NotePadContainer" Path="[WindowsFolder]" Depth="1"> <FileSearch Id="NotepadFileWin" Name="notepad.exe" /> </DirectorySearch> </Property> works just fine when used in a custom action called when user clicks Finish button. The problem is doing the same with (.NET) app that was just installed. -----Original Message----- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: Tuesday, November 10, 2009 8: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/ TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ------------------------------------------------------------------------------ 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