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:os...@live.com] 
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:pally.sand...@iesve.com] 
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:t...@scanvaegt.dk] 
Sent: 05 July 2010 11:38
To: wix-users@lists.sourceforge.net
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 t...@scanvaegt.dk |
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: wix-users-requ...@lists.sourceforge.net
[mailto:wix-users-requ...@lists.sourceforge.net]
Sent: 4. juli 2010 03:48
To: wix-users@lists.sourceforge.net
Subject: WiX-users Digest, Vol 50, Issue 14

Send WiX-users mailing list submissions to
        wix-users@lists.sourceforge.net

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
        wix-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        wix-users-ow...@lists.sourceforge.net

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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to