Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-17 Thread Baris Taze
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?

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-17 Thread Sascha Beaumont
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

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-07 Thread Rob Mensching
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:

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-07 Thread Baris Taze
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

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-07 Thread Sascha Beaumont
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

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-07 Thread Baris Taze
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

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-06 Thread Baris Taze
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

Re: [WiX-users] A real challenge: how to launch the app in elevated mode after finishing its setup ?

2010-02-05 Thread Blair
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-