A couple or four things: 

1) Does "early in the installation process" mean in the UI sequence? 

2) Manifests target executables, not Dlls - they run with the level of
the exe that loads them. 

3) If the setup.exe isn't asking for elevation via Cancel/Allow but is
asking for an admin account, then it means you're not an administrator
but you need to be. Someone has to provide admin credentials, either you
elevated to admin or somebody "over the shoulder" on your behalf. 

4) AdminUser is unreliable under Vista.  
 
http://blogs.msdn.com/rflaming/archive/2006/09/21/uac-in-msi-notes-the-a
dminuser-mistake.aspx  

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chuck
Sent: Friday, March 30, 2007 4:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CA with elevated privileges under Vista!

I have the following situation:

I am creating an MSI in which I need to run a CA early in the
installation process, the DA is in a C dll. The CA "Requires" Admin
access under Vista.  I am wrapping the msi in a setup.exe boot strapper
that has a manifest with requestedExecutionLevel
level="requireAdministrator". In my WIX project I have a condition for
AdminUser and in the package I have InstallPrivileges set to elevated. 
The dll has requireAdministrator in its manifest.

The problem that I'm having is that the code that I'm executing in my CA
fails to execute correctly.  I extracted the code and compiled it into
an exe with the same manifest as above.  When I run the exe the code
completes correctly!

In both cases I am getting prompted for an Admin password...which would
lead one to think that the installer is running as an Admin user...but
the CA fails.

Any thoughts on this would be greatly appreciated.

Thanx
Chuck

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to