There is no entry point named "WixShellExecTargetSilent", CAQuietExec is probably what you're after.
On Thu, Feb 18, 2010 at 10:11 AM, Baris Taze <bt...@microsoft.com> wrote: > > > Hi, > > > > I am trying to prepare a two version of the launching for my app. One is > regular mode, and one for silent mode. I want to launch my app in silent mode > if the MSI is executed with /quiet mode. However, my second custom action > doesn't work. > > > > Could you please help me on that? > > > > > <Property Id="WixShellExecTarget" Value="[TARGETDIR]MyApp.exe" /> > <Property Id="WixShellExecTargetSilent" Value="[TARGETDIR]MyApp.exe > /quiet" /> > > <CustomAction > Id="LaunchMyApp" > BinaryKey="WixCA" > DllEntry="WixShellExec" > Impersonate="yes"/> > > <CustomAction > Id="LaunchMyAppSilent" > BinaryKey="WixCA" > DllEntry=" WixShellExecTargetSilent" > Impersonate="yes" > /> > > > > > > > > > > -----Original Message----- > From: Baris Taze [mailto:bt...@microsoft.com] > Sent: Sunday, February 07, 2010 2:57 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 ? > > > > > > Thank you very much. Applying the 'WixShellExec' which is described in the > below link has worked perfectly. > > http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm > > > > Thank you all for your great valued replies. > > > > -Baris > > > > > > -----Original Message----- > > From: Sascha Beaumont [mailto:sascha.beaum...@gmail.com] > > Sent: Sunday, February 07, 2010 1:59 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 ? > > > > I use the following code to launch a program on finish, users are > > always prompted to elevate, application manifest includes > > <requestedExecutionLevel level="requireAdministrator" uiAccess="false" > > /> > > > > > > <Fragment> > > <CustomAction Id="SetAppTarget" Property="WixShellExecTarget" > > Value="[#App.exe]" /> > > <CustomAction Id="LaunchApp" BinaryKey="WixCA" > > DllEntry="WixShellExec" Impersonate="yes" /> > > <UI Id="LaunchApp"> > > <Publish Dialog="ExitDialog" Control="Finish" > Event="DoAction" > > Value="SetAppTarget"> > > <![CDATA[NOT Installed]]> > > </Publish> > > <Publish Dialog="ExitDialog" Control="Finish" > Event="DoAction" > > Value="LaunchApp"> > > <![CDATA[NOT Installed]]> > > </Publish> > > </UI> > > </Fragment> > > > > > > On Mon, Feb 8, 2010 at 5:46 AM, Baris Taze <bt...@microsoft.com> wrote: > >> > >> 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 > >> > > > > ------------------------------------------------------------------------------ > > 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 > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users