I believe the recommendation is to have a type 19 custom action in the
InstallExecuteSequence that is conditioned on the Privileged property, that
will exit the install if you're not privileged. You don't know whether you're
actually privileged until then, after the elevation prompt could have occurred.
If you have a launcher program then that may elevate either through installer
detection or an explicit manifest requiring administrator privilege, and if
that gets elevated then the launched MSI will also be elevated.
Phil Wilson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Leahy
Sent: Wednesday, May 21, 2008 3:54 PM
To: Colin Bleckner
Cc: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Manually trigger UAC
I think you need to look at the IsPriveleged property in MSI for your check,
and theres some way to make the installer require elevation in the manifest
file. I'm not sure how to do that though. You might search for UAC manifest
MSI or something like that.
Kelly
Colin Bleckner <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05/21/2008 03:48 PM
To
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
cc
Subject
[WiX-users] Manually trigger UAC
I'm having problems with my installer and Vista's UAC. I'm looking for
a short term solution that I can put in place while I try to figure out
a real solution. I'm wondering if anyone knows how to do one of two things:
- Manually trigger the UAC in my installer. I think I have some
strange timing issues and would like to see if things would work better
if I trigger the UAC dialog before I start the actual installation begins.
- If I can't do that, can I create a condition that prevents my
installer from running if it's not running in an elevated mode? This
obviously isn't ideal, but it's better than a broken installer.
Thanks for any tips,
Colin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or opinions
upon which reliance may be made by the addressee or any other party,
and it should be considered to be a work in progress. Unless otherwise
noted in this email or its attachments, this communication does not form
a Statement of Actuarial Opinion under American Academy of Actuaries guidelines.
**************************************************************************************
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users