Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Vista / General Topics / February 2007

Tip: Looking for answers? Try searching our database.

Why don't MSI Installers Run in Elevated Context??? (And other deployment related questions)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 28 Feb 2007 20:54 GMT
Here's the situation.

I have an installer which needs to install and register an ActiveX EXE as
part of my product.

(Yeah, it's me again. :-\ I'm getting awfully tired of this myself.)

In order to do this, the executable needs to be launched with elevated
permissions.

Fact 1. The name of my MSI is MyAppSetup.MSI. (It contains the magic term
'Setup'.)

Q1. Does the MSI run in elevated context? The indication that it does is
that I do get the elevation prompt when the MSI is launched. Indications
that it does not run elevated are a, there is no 'shield' incorporated to
the icon and b, see Fact 2. So I'm really not sure about this. Does the MSI
run in elevated context? Can someone answer this question, please?

Fact 2. Whatever the answer to Q1, the ActiveX executable launched as a
custom action from within the MSI does NOT get elevated and consequently
fails with 'Unanticipated error', since it can't get access to the Registry
which it needs in order to register itself.

Q2. IF the answer to Q1 is YES, then why doesn't the ActiveX application
launch as elevated? Can someone answer this question please?

Fact 3. If I compile my installer to EXE, as opposed to MSI then the
installer runs elevated (as proof, the icon displays the little shield icon
in the corner) AND the ActiveX executable properly launches elevated and
registers itself properly during the installation.

Q3. If an EXE can do this, why can't an MSI?

Q4. How is an MSI supposed to be deployed via Active Directory Group Policy?
Will it be able to run elevated under this condition? Will executables
launched from the MSI be able to run elevated under this condition?

Q5. Am I going to need to generate 2 installers for every software release;
an MSI for Group Policy install and an EXE for interactive workstation
install?

Just a few questions. Anyone wishing to install software for Vista is going
to need to know the answers to these questions.

Thanks for your help!

- Joseph Geretz -
Jesper - 28 Feb 2007 22:45 GMT
I'm no expert on installers, but there are a couple of resources out there
that may help:
http://blogs.msdn.com/windows_installer_team/ - Particularly the link to
Stefan Krueger's article sounds interesting.

The custom action is tricky, but Heath Stewart has a bunch of information on
it here:
http://blogs.msdn.com/heaths/archive/2006/09/26/Custom-Actions-under-UAC-in-Vist
a.aspx


> Here's the situation.
>
[quoted text clipped - 44 lines]
>
> - Joseph Geretz -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.