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  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?
>
>
>
>
>    
>    
>
>            Id="LaunchMyApp"
>        BinaryKey="WixCA"
>        DllEntry="WixShellExec"
>        Impersonate="yes"/>
>
>            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
>
> 
> />
>
>
>
>
>
>      
>
>            
> Value="[#App.exe]" />
>
>            
> DllEntry="WixShellExec" Impersonate="yes" />
>
>            
>
>                   Event="DoAction"
>
> Value="SetAppTarget">
>
>                        
>
>                  
>
>                   Event="DoAction"
>
> Value="LaunchApp">
>
>                        
>
>                  
>
>            
>
>      
>
>
>
>
>
> On Mon, Feb 8, 2010 at 5:46 AM, Baris Taze  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  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:
>
>>>
&g

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?



















-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







  







  



  

  



  



  





On Mon, Feb 8, 2010 at 5:46 AM, Baris Taze  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  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:

>>

>>

>> 

>> 

>>  

>>

>>  

>>

>>  

>>

>>  

>> 

>>

>>

>> 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 j

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 [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

















On Mon, Feb 8, 2010 at 5:46 AM, Baris Taze  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  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:
>>
>>
>> 
>> 
>>  
>>    
>>      
>>        
>>      
>>    
>>  
>> 
>>
>>
>> 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 t

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

















On Mon, Feb 8, 2010 at 5:46 AM, Baris Taze  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  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:
>>
>>
>> 
>> 
>>  
>>    
>>      
>>        
>>      
>>    
>>  
>> 
>>
>>
>> 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, 

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 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  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:
>
>
> 
> 
>  
>
>  
>
>  
>
>  
> 
>
>
> 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://

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:
http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

On Sat, Feb 6, 2010 at 11:14 PM, Baris Taze  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:
>
>
> 
> 
>  
>
>  
>
>  
>
>  
> 
>
>
> 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
> ___

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 click on the application, it prompts the elevation dialog properly 
though.
We have the following manifest file embedded into the application binary:




  

  

  

  



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


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-
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