I did discover that if the CustomAction runs a console application (in
a command prompt box) and that runs the configuration application then
I can get what I want.  But it is too ugly and confusing for my users.

[Note for anyone who want to try launching via a console application,
I did it with Execute='immediate', Impersonate='yes' and after
InstallFinalize.  I don't know what would happen if I did it before
InstallFinalize.]

My original plan was to launch the configuration application after the
installation had finished (after the reboot actually), but then I got
seduced by the ease of the CustomAction and lost a day :-(

Thanks,
Hugh

On Fri, Jan 2, 2009 at 9:06 AM, Michael Owings <mi...@swampgas.com> wrote:
> I had a similiar problem with a C++ custom action that needed to display
> a confirmation dialog. ::MessageBox() had the same issue, so I had to
> switch to using MsiProcessMessage from the Windows Installer API. This
> worked out fine for me, but in your case, I think you're stuck. MS puts
> a lot of roadblocks in fromt of applications that want to force their
> way to the top of the z-order.
>
> I'd google 'win32 z-order vista' and see what you can do about bringing
> your app to the front of the desktop. Alternatively, you could lauinch
> the app via a bootstrapper once installation is complete (as opposed to
> just finalized).
>
> Hugh Emberson wrote:
>> Hello,
>>
>> I'm developing an installer in WiX 2.0, it works well except for one
>> thing ...
>>
>> I have a CustomAction which launches a configuration application after
>> then installation has been finalized.  On XP, this works fine, but on
>> Vista the application window pops up under the installer UI window.
>>
>> I'd like the application window to pop up on top of the installer UI
>> (I'm using Wix_UI_InstallDir).  Does anyone know how to make this
>> happen?
>>
>> The CustomAction looks like this:
>>
>>     <CustomAction Id='LaunchConfigApp'
>>                   Execute='deferred'
>>                   FileKey='configappEXE'
>>                   ExeCommand=''
>>                   Impersonate='no'
>>                   Return='ignore' />""")
>>
>>     <InstallExecuteSequence>
>>       <Custom Action='LaunchConfigApp'
>>               Before='InstallFinalize'>NOT Installed</Custom>
>>     </InstallExecuteSequence>
>>
>> Thanks,
>> Hugh
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>>
>
>
> --
> Teleoperate a roving mobile robot from the web:
> http://www.swampgas.com/robotics/rover.html
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to