Unfortunately when merely querying the system requires elevation you
typically have to engage a bootstrapper that is manifested to require
elevation to force all of your MSI to run elevated. That, of course, means
your removal from ARP will see this CA fail as well, so if you need the CA
for removal, repair, or other maintenance operations, you'll need to
investigate other possible solutions (including using ARPSYSTEMCOMPONENT and
bootstrapping from your own ARP entry).

-----Original Message-----
From: Christian Froehlich [mailto:dafr...@yahoo.com] 
Sent: Tuesday, August 17, 2010 11:35 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Actions with elevated privledges

Hi All,

I have hit a conundrum here. I have an immediate custom action that gets a
list 
of IIS application pools to be displayed in a ComboBox for user selection.

Now as this needs to be executed before the user interface is shown, i have
made 
this an immediate custom action. This seems to work fine for IIS 5.1/6.
Today i tested this with IIS7 but to my dismay, it requires elevated
privileges, 
something that cannot be done with an immediate action.

The solution then is to make it a deferred custom action, however i am given
to 
understand that these can only be scheduled to run in the 
InstallExecuteSequence?
If that is indeed the case, how can i create a custom action that can run
before 
the UI and use elevated privileges?
Or is there a better way to get a list of application pools that does not 
require administrative access?

For your information my custom action is written in C# and uses a
DirectoryEntry 
to query the IIS metabase.

Any help that could be given would be greatly appreciated.

Many thanks,

Christian Froehlich


      
----------------------------------------------------------------------------
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to