With those attributes you told Windows Installer that you care about the
result of running your action, which of course requires that it end, so
Windows Installer waits until the program ends before it exits.

By not setting the Execute attribute you have identified the CustomAction as
"immediate" which is completely appropriate. However, immediate custom
actions always run as the installing user, so the Impersonate attribute has
no effect. You can drop it.

You need to use the Return attribute, and the value you need is asyncNoWait.
So, your CustomAction tag should look like this:

    <CustomAction Id="LaunchLicenseManager" BinaryKey="WixCA"
                  DllEntry="WixShellExec" Return="asyncNoWait" />

-Blair

-----Original Message-----
From: Reinier Lamers [mailto:lam...@textkernel.nl] 
Sent: Monday, January 18, 2010 4:53 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Running application after install wizard leaves
install wizard unclosable

Hi Blair,

The CustomAction tag looks as follows:

    <CustomAction Id="LaunchLicenseManager" BinaryKey="WixCA"
                  DllEntry="WixShellExec" Impersonate="yes" />

Reinier

2010/1/16 Blair <os...@live.com>:
> Could you please share the attributes of the <CustomAction> element for
the
> LaunchLicenseManager action?
>
> -----Original Message-----
> From: Reinier Lamers [mailto:lam...@textkernel.nl]
> Sent: Friday, January 15, 2010 6:22 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Running application after install wizard leaves
install
> wizard unclosable
>
> Hi all,
>
> I tried to apply the "How To: Run the installed application after
> installation" chapter from the WiX manual in a WiX file that also
> contains a modified version of the WixUI_InstallDir dialog that does
> not show an EULA confirmation dialog.
>
> I added this Publish tag just before the </UI> closing tag:
>
>            <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
>                     Value="LaunchLicenseManager">
>              WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed
>            </Publish>
>
> For some reason, the installation wizard does not exit when it runs
> the application. It does exit when I uncheck the "Launch application"
> checkbox and I press finish.
>
> Must I have made some mistake or is the howto mistaken?
>
> As an extra clue, I see a shell window behind the application window
> when it is run from the installer. Does this mean that the installed
> EXE is a console application? If so, could it help to compile it as a
> GUI application?
>
> --
> Met vriendelijke groet, Kind regards,
> Reinier Lamers
> Textkernel BV

----------------------------------------------------------------------------
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to