What would be the solution in that case? Should I use something else to launch as a beginning like "start" or "cmd"; and then let it launch my target 'app' later? Do you know if that would work?
Many people must be needing this kind of launch scenario (i.e. elevated launch after the installation). I wonder how they really handle this. I appreciate your replies a lot. Thanks, -Baris -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Sunday, February 07, 2010 7:59 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ? I think the Windows Installer uses ::CreateProcess() to launch executable custom actions. ::CreateProcess() ignores the manifest and attempts to launch the executable using the same elevation token as the parent process. To work around this, use the WixShellExec custom action: http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm On Sat, Feb 6, 2010 at 11:14 PM, Baris Taze <bt...@microsoft.com> wrote: > > I tried that. At first glance, it seemed as if the setup was not launching > the app. However I checked the logs. I realized that the setup launches the > MSI after the installation indeed. Application gets launched; however, it > fails silently without prompting the elevation dialog. > > If we double click on the application, it prompts the elevation dialog > properly though. > We have the following manifest file embedded into the application binary: > > > <?xml version="1.0" encoding="utf-8" ?> > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> > <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> > <security> > <requestedPrivileges> > <requestedExecutionLevel level="requireAdministrator" /> > </requestedPrivileges> > </security> > </trustInfo> > </assembly> > > > This is happening on a Win 7 machine. I haven't tried this on other OSes > yet. > > Could you please let me know if I am missing anything. > > Thanks, > -Baris > > > > > -----Original Message----- > From: Blair [mailto:os...@live.com] > Sent: Friday, February 05, 2010 7:01 PM > To: 'General discussion for Windows Installer XML toolset.' > Subject: Re: [WiX-users] A real challenge: how to launch the app in > elevated mode after finishing its setup ? > > If the application is manifested as "requiresAdministrator" (see the > requestedExecutionLevel element here: > http://msdn.microsoft.com/en-us/library/bb756929.aspx) then your app will > prompt the user and be elevated when launched, no matter from where that > launch occurs. > > -----Original Message----- > From: Baris Taze [mailto:bt...@microsoft.com] > Sent: Friday, February 05, 2010 5:55 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] A real challenge: how to launch the app in elevated > mode after finishing its setup ? > > > Hi, > > I am having trouble to implement a WIX project which requires the installed > application to be launched just after its installation. I have read many > articles and couldn't find a way to do it. The articles says that I need to > flag my custom action as > > Execute="deferred" Impersonate="no" > > to make it get elevated. On the other hand, the articles says that > > "deferred" actions must be before 'InstallFinalize' and after > 'InstallInitialize'. > > That means, I cannot define a "deferred" custom action to be run after the > regular 'finish screen'. > > I am pretty sure that there are many people in the world that needs > something like that. But I really don't know how to come up with a solution > for this. Could you please let me know if you know a solution. A simple > code > example would be great if you have any. Any help is greatly appreciated. > > Thanks in advance > -Baris > > > > ---------------------------------------------------------------------------- > -- > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users