Quantcast

Problems launching an application on finish

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problems launching an application on finish

Thomas Due-3
Hello,

I have a rather simple installer which among other things registers and starts some windows services.
As such, the installer requires admin privileges from the UAC on Vista and Win7.
It runs beautifully on Windows XP, Windows Vista and Windows 7, so not problems with the installer.

However, I need to launch an application when the user clicks the Finish button on the last dialog.
Since the application needs to restart the services, it needs to run with administrative privileges. I have as a result included a manifest in the application requesting admin rights.
This also works beautifully, when executed separately.

On Windows XP the installer launches the application as it should, but on Windows 7 (I haven't tested on Vista yet) it doesn't start.
I suspect it has to do with the installer running as "normal" user, while the application requires admin privileges, and I am missing something for making the installer able to launch the application.

My launch code looks like this:

<Product ..>

        <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchConfig" Order="999">NOT Installed</Publish>

        <CustomAction Id="LaunchConfig" FileKey="MasterConfig" Return="asyncNoWait" />

Where the MasterConfig points correctly to an application being installed.
So, what am I missing?
 

Med venlig hilsen / Best regards,
Thomas Due - Software Developer 
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark
[hidden email] | www.scanvaegt.dk 



This e-mail and its attachments are intended for the named addressee only and may contain information that is confidential and privileged. Unauthorized use can instigate a claim for damages and constitute a criminal offence. If you received this in error, please contact the sender and delete the material.


-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: 4. juli 2010 03:48
To: [hidden email]
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than "Re: Contents of WiX-users digest..."


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Pally Sandher
Try adding the Impersonate attribute with value "no" to your CustomAction element. You may also want to change the Execute attribute to "commit" or "deferred". See -> http://wix.sourceforge.net/manual-wix3/wix_xsd_customaction.htm

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Thomas Due [mailto:[hidden email]]
Sent: 05 July 2010 11:38
To: [hidden email]
Subject: [WiX-users] Problems launching an application on finish

Hello,

I have a rather simple installer which among other things registers and starts some windows services.
As such, the installer requires admin privileges from the UAC on Vista and Win7.
It runs beautifully on Windows XP, Windows Vista and Windows 7, so not problems with the installer.

However, I need to launch an application when the user clicks the Finish button on the last dialog.
Since the application needs to restart the services, it needs to run with administrative privileges. I have as a result included a manifest in the application requesting admin rights.
This also works beautifully, when executed separately.

On Windows XP the installer launches the application as it should, but on Windows 7 (I haven't tested on Vista yet) it doesn't start.
I suspect it has to do with the installer running as "normal" user, while the application requires admin privileges, and I am missing something for making the installer able to launch the application.

My launch code looks like this:

<Product ..>

        <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchConfig" Order="999">NOT Installed</Publish>

        <CustomAction Id="LaunchConfig" FileKey="MasterConfig" Return="asyncNoWait" />

Where the MasterConfig points correctly to an application being installed.
So, what am I missing?
 

Med venlig hilsen / Best regards,
Thomas Due - Software Developer
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark [hidden email] | www.scanvaegt.dk 



This e-mail and its attachments are intended for the named addressee only and may contain information that is confidential and privileged. Unauthorized use can instigate a claim for damages and constitute a criminal offence. If you received this in error, please contact the sender and delete the material.


-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: 4. juli 2010 03:48
To: [hidden email]
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than "Re: Contents of WiX-users digest..."


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Blair Murri-3
You can't run a deferred action from a Publish. If you use cmd.exe (or
QAQuietExec) you may be able to launch the executable in such a way as to
let UAC prompt you for elevation. The failure is because <CustomAction
FileKey/> launches in such a way as to not allow UAC to be invoked, and the
application's elevation manifest prevents execution.

-----Original Message-----
From: Pally Sandher [mailto:[hidden email]]
Sent: Monday, July 05, 2010 4:01 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problems launching an application on finish

Try adding the Impersonate attribute with value "no" to your CustomAction
element. You may also want to change the Execute attribute to "commit" or
"deferred". See ->
http://wix.sourceforge.net/manual-wix3/wix_xsd_customaction.htm

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow
G20 0SP
Email Disclaimer

-----Original Message-----
From: Thomas Due [mailto:[hidden email]]
Sent: 05 July 2010 11:38
To: [hidden email]
Subject: [WiX-users] Problems launching an application on finish

Hello,

I have a rather simple installer which among other things registers and
starts some windows services.
As such, the installer requires admin privileges from the UAC on Vista and
Win7.
It runs beautifully on Windows XP, Windows Vista and Windows 7, so not
problems with the installer.

However, I need to launch an application when the user clicks the Finish
button on the last dialog.
Since the application needs to restart the services, it needs to run with
administrative privileges. I have as a result included a manifest in the
application requesting admin rights.
This also works beautifully, when executed separately.

On Windows XP the installer launches the application as it should, but on
Windows 7 (I haven't tested on Vista yet) it doesn't start.
I suspect it has to do with the installer running as "normal" user, while
the application requires admin privileges, and I am missing something for
making the installer able to launch the application.

My launch code looks like this:

<Product ..>

        <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
Value="LaunchConfig" Order="999">NOT Installed</Publish>

        <CustomAction Id="LaunchConfig" FileKey="MasterConfig"
Return="asyncNoWait" />

Where the MasterConfig points correctly to an application being installed.
So, what am I missing?
 

Med venlig hilsen / Best regards,
Thomas Due - Software Developer
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark [hidden email] |
www.scanvaegt.dk 



This e-mail and its attachments are intended for the named addressee only
and may contain information that is confidential and privileged.
Unauthorized use can instigate a claim for damages and constitute a criminal
offence. If you received this in error, please contact the sender and delete
the material.


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: 4. juli 2010 03:48
To: [hidden email]
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of WiX-users digest..."


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO,
the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Thomas Due-3
So what is the conclusion? That what I am trying is basically impossible?
I tried setting the action to Impersonate="No" and Execute="Commit". I got this for my trouble:

---

Action start 13:54:36: LaunchConfig.
MSI (c) (AC:A8) [13:54:36:027]: Note: 1: 2762
DEBUG: Error 2762:  Unable to schedule operation. The action must be scheduled between InstallInitialize and InstallFinalize.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , ,
MSI (c) (AC:A8) [13:54:42:205]: Product: ScanX.NET -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , ,

Action ended 13:54:42: LaunchConfig. Return value 3.
DEBUG: Error 2896:  Executing action LaunchConfig failed.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LaunchConfig, ,

---

Is there any way to solve this issue, without having to start the entire msi as administrator, or launching the application through obscure custom actions?  

In any event, thank you all so far for your help.

/Thomas Due 

-----Original Message-----
From: Blair [mailto:[hidden email]]
Sent: 5. juli 2010 17:26
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Problems launching an application on finish

You can't run a deferred action from a Publish. If you use cmd.exe (or
QAQuietExec) you may be able to launch the executable in such a way as to
let UAC prompt you for elevation. The failure is because <CustomAction
FileKey/> launches in such a way as to not allow UAC to be invoked, and the
application's elevation manifest prevents execution.

-----Original Message-----
From: Pally Sandher [mailto:[hidden email]]
Sent: Monday, July 05, 2010 4:01 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problems launching an application on finish

Try adding the Impersonate attribute with value "no" to your CustomAction
element. You may also want to change the Execute attribute to "commit" or
"deferred". See ->
http://wix.sourceforge.net/manual-wix3/wix_xsd_customaction.htm

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow
G20 0SP
Email Disclaimer

-----Original Message-----
From: Thomas Due [mailto:[hidden email]]
Sent: 05 July 2010 11:38
To: [hidden email]
Subject: [WiX-users] Problems launching an application on finish

Hello,

I have a rather simple installer which among other things registers and
starts some windows services.
As such, the installer requires admin privileges from the UAC on Vista and
Win7.
It runs beautifully on Windows XP, Windows Vista and Windows 7, so not
problems with the installer.

However, I need to launch an application when the user clicks the Finish
button on the last dialog.
Since the application needs to restart the services, it needs to run with
administrative privileges. I have as a result included a manifest in the
application requesting admin rights.
This also works beautifully, when executed separately.

On Windows XP the installer launches the application as it should, but on
Windows 7 (I haven't tested on Vista yet) it doesn't start.
I suspect it has to do with the installer running as "normal" user, while
the application requires admin privileges, and I am missing something for
making the installer able to launch the application.

My launch code looks like this:

<Product ..>

        <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
Value="LaunchConfig" Order="999">NOT Installed</Publish>

        <CustomAction Id="LaunchConfig" FileKey="MasterConfig"
Return="asyncNoWait" />

Where the MasterConfig points correctly to an application being installed.
So, what am I missing?
 

Med venlig hilsen / Best regards,
Thomas Due - Software Developer
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark [hidden email] |
www.scanvaegt.dk 



This e-mail and its attachments are intended for the named addressee only
and may contain information that is confidential and privileged.
Unauthorized use can instigate a claim for damages and constitute a criminal
offence. If you received this in error, please contact the sender and delete
the material.


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: 4. juli 2010 03:48
To: [hidden email]
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of WiX-users digest..."


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO,
the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users





------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Pally Sandher
Try using QTExec as per the example at http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm but ignore the parts about adding the checkbox & text to the ExitDialog if you don't want them (and modify the Condition of the example Publish accordingly).

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Thomas Due [mailto:[hidden email]]
Sent: 07 July 2010 13:05
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problems launching an application on finish

So what is the conclusion? That what I am trying is basically impossible?
I tried setting the action to Impersonate="No" and Execute="Commit". I got this for my trouble:

---

Action start 13:54:36: LaunchConfig.
MSI (c) (AC:A8) [13:54:36:027]: Note: 1: 2762
DEBUG: Error 2762:  Unable to schedule operation. The action must be scheduled between InstallInitialize and InstallFinalize.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , , MSI (c) (AC:A8) [13:54:42:205]: Product: ScanX.NET -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , ,

Action ended 13:54:42: LaunchConfig. Return value 3.
DEBUG: Error 2896:  Executing action LaunchConfig failed.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LaunchConfig, ,

---

Is there any way to solve this issue, without having to start the entire msi as administrator, or launching the application through obscure custom actions?  

In any event, thank you all so far for your help.

/Thomas Due 

-----Original Message-----
From: Blair [mailto:[hidden email]]
Sent: 5. juli 2010 17:26
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Problems launching an application on finish

You can't run a deferred action from a Publish. If you use cmd.exe (or
QAQuietExec) you may be able to launch the executable in such a way as to let UAC prompt you for elevation. The failure is because <CustomAction FileKey/> launches in such a way as to not allow UAC to be invoked, and the application's elevation manifest prevents execution.

-----Original Message-----
From: Pally Sandher [mailto:[hidden email]]
Sent: Monday, July 05, 2010 4:01 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problems launching an application on finish

Try adding the Impersonate attribute with value "no" to your CustomAction element. You may also want to change the Execute attribute to "commit" or "deferred". See -> http://wix.sourceforge.net/manual-wix3/wix_xsd_customaction.htm

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer

-----Original Message-----
From: Thomas Due [mailto:[hidden email]]
Sent: 05 July 2010 11:38
To: [hidden email]
Subject: [WiX-users] Problems launching an application on finish

Hello,

I have a rather simple installer which among other things registers and starts some windows services.
As such, the installer requires admin privileges from the UAC on Vista and Win7.
It runs beautifully on Windows XP, Windows Vista and Windows 7, so not problems with the installer.

However, I need to launch an application when the user clicks the Finish button on the last dialog.
Since the application needs to restart the services, it needs to run with administrative privileges. I have as a result included a manifest in the application requesting admin rights.
This also works beautifully, when executed separately.

On Windows XP the installer launches the application as it should, but on Windows 7 (I haven't tested on Vista yet) it doesn't start.
I suspect it has to do with the installer running as "normal" user, while the application requires admin privileges, and I am missing something for making the installer able to launch the application.

My launch code looks like this:

<Product ..>

        <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
Value="LaunchConfig" Order="999">NOT Installed</Publish>

        <CustomAction Id="LaunchConfig" FileKey="MasterConfig"
Return="asyncNoWait" />

Where the MasterConfig points correctly to an application being installed.
So, what am I missing?
 

Med venlig hilsen / Best regards,
Thomas Due - Software Developer
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark [hidden email] | www.scanvaegt.dk 



This e-mail and its attachments are intended for the named addressee only and may contain information that is confidential and privileged.
Unauthorized use can instigate a claim for damages and constitute a criminal offence. If you received this in error, please contact the sender and delete the material.


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: 4. juli 2010 03:48
To: [hidden email]
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of WiX-users digest..."


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users





------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Bob Arnson-6
In reply to this post by Thomas Due-3
On 7/7/2010 8:05 AM, Thomas Due wrote:
> So what is the conclusion? That what I am trying is basically impossible?
>    

MSI will not launch an elevated process except as a deferred custom
action and you can't use those from the UI.

--
sig://boB
http://joyofsetup.com/


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

Thomas Due-3
>> So what is the conclusion? That what I am trying is basically impossible?

> MSI will not launch an elevated process except as a deferred custom
> action and you can't use those from the UI.

I read that as a "yes".

So, what is my options then? I will of course attempt the solution that Palbinder Sandher suggested, but is that really the only solution?

I have run out of time on the subject for the time being, so I have to resign to the fact that people have to run the application manually on Windows Vista and 7.
But since I will be returning to the subject, I just want to know If the custom action described in the manual is the only (possibly) way?

In any event, thank you for your time.
 
Med venlig hilsen / Best regards,
Thomas Due - Software Developer
Tel: +45 8678 5500 Fax: +45 8678 5210
Johann Gutenbergs vej 5-9, Aarhus N, Denmark
[hidden email] | www.scanvaegt.dk  


This e-mail and its attachments are intended for the named addressee only and may contain information that is confidential and privileged. Unauthorized use can instigate a claim for damages and constitute a criminal offence. If you received this in error, please contact the sender and delete the material.



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

saschabeaumont
Try this... the user will see a UAC prompt, same as if the application
was manually launched. There's no way around this, but our users have
never complained.

        <Fragment>
                <CustomAction Id="SetElevatedAppTarget"
Property="WixShellExecTarget" Value="[#ElevatedApp.exe]" />
                <CustomAction Id="LaunchElevatedApp" BinaryKey="WixCA"
DllEntry="WixShellExec" Impersonate="yes" />
                <UI Id="Activation">
                        <Publish Dialog="NitroExitDialog" Control="Finish" Event="DoAction"
Value="SetElevatedAppTarget">
                                <![CDATA[NOT Installed]]>
                        </Publish>
                        <Publish Dialog="NitroExitDialog" Control="Finish" Event="DoAction"
Value="LaunchElevatedApp">
                                <![CDATA[NOT Installed]]>
                        </Publish>
                </UI>
        </Fragment>
       


On Thu, Jul 8, 2010 at 4:29 PM, Thomas Due <[hidden email]> wrote:

>>> So what is the conclusion? That what I am trying is basically impossible?
>
>> MSI will not launch an elevated process except as a deferred custom
>> action and you can't use those from the UI.
>
> I read that as a "yes".
>
> So, what is my options then? I will of course attempt the solution that Palbinder Sandher suggested, but is that really the only solution?
>
> I have run out of time on the subject for the time being, so I have to resign to the fact that people have to run the application manually on Windows Vista and 7.
> But since I will be returning to the subject, I just want to know If the custom action described in the manual is the only (possibly) way?
>
> In any event, thank you for your time.
>
> Med venlig hilsen / Best regards,
> Thomas Due - Software Developer
> Tel: +45 8678 5500 Fax: +45 8678 5210
> Johann Gutenbergs vej 5-9, Aarhus N, Denmark
> [hidden email] | www.scanvaegt.dk
>
>
> This e-mail and its attachments are intended for the named addressee only and may contain information that is confidential and privileged. Unauthorized use can instigate a claim for damages and constitute a criminal offence. If you received this in error, please contact the sender and delete the material.
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

pavankonduru
This post has NOT been accepted by the mailing list yet.
Brilliant answer saschabeaumont!!
That worked for me!!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems launching an application on finish

person00001
This post has NOT been accepted by the mailing list yet.
In reply to this post by saschabeaumont
Thank you so much saschabeaumont.  Your recommendation worked perfectly for me, when otherwise I probably would have struggled for many more hours.
Loading...