If I'm reading this correctly you are trying to launch an exe (which the 
program installed) before InstallFinalize. I'm not sure if that will work.

The recommended way is to launch at the very end using an immediate custom 
action.

-----Original Message-----
From: Wilson, Phil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 10:27 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom action with elevated privileges doesn't work

You must still have a deferred custom action after InstallFinalize, that's what 
error 2762 is saying.  Are you sure your system is clean? Is it possible that 
you're really just going into a repair mode and having an already-installed 
product run?  Or it's an upgrade and the uninstall of the older product is 
running it?

Phil Wilson


-----Original Message-----
From: Sudripta Nandy (Sarangsoft Corporation) [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2008 5:54 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action with elevated privileges doesn't work

Hi,
    I am facing a weird problem when running a setup built using wix. I have 
three custom actions which I need to be executed. Two of them are in a 'dll' 
and don't require elevated privileges in Windows Vista and so I am executing 
them in Immediate mode. The third one is the main executable of our product, 
which I want to be run after the installation and with elevated privileges. So, 
to provide elevated privileges I need to specify Execute='deferred' and 
Impersonate='no'. So, I am doing just that. I am also scheduling the action 
before 'InstallFinalize'. On doing so, the product is getting installed 
correctly and also the executable is getting executed with elevated privileges. 
But, just before closing down, the MSI is generating an error 2762 which means 
the deferred custom action needs to be scheduled between InstallInitialize and 
InstallFinalize. But, I am doing just that and still its producing that error 
message.

    Please let me know what should I do to stop getting that error message.


Thanks.
Sudripta.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to