Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Install as standard user without elevation prompt, is it possible ?

6 views
Skip to first unread message

nub...@arkoon.net

unread,
May 22, 2008, 8:33:10 AM5/22/08
to
Hi all,

In our application, each user can install his "profile" (couple of
settings for our application) as standard user. This "profile" is in
fact a Windows Installer base launch by MsiInstallProduct from an exe
(for example, PerformMyProfile.exe...).

Under VISTA with UAC enabled (I think you guess the following...),
when a standard user apply his "profile" (in fact, launch
PerformMyProfile...), the system ask for elevation prompt with
administrator password.

My problem is that a standard user should have rights to install his
own "profile" without this administrator password.
So, my question : is there a way to install a profile without
elevation (or request admin privileges) ?

For information, during this installation, we do NOT write to "Program
Files\..." nor "HKLM\...".

I tried adding a manifest with "RequestedExecutionLevel
level=asinvoker" embedded in PerformMyProfile.exe ; but elevation
still prompts for admin password...


Thanks by advance,
Nicolas

Phil Wilson

unread,
May 22, 2008, 1:11:20 PM5/22/08
to
This should help:

http://msdn.microsoft.com/en-us/library/aa367800.aspx

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


<nub...@arkoon.net> wrote in message
news:7194f0d9-5a03-4ddb...@s50g2000hsb.googlegroups.com...

NicolasU

unread,
May 27, 2008, 3:47:36 AM5/27/08
to
Thanks for the link. In fact, I followed the way explained in this
link (http://blogs.msdn.com/jamesfi/archive/2007/05/02/making-an-msi-
that-doesn-t-need-a-uac-lua-prompt.aspx) and solve my problem (your
link was a great help too).


If it could help somebody else, here is what I used to set the summary
information flag :

------------------------------------------------------------------------------------------------------------------------------------------------
PMSIHANDLE cSummaryInfo;

MsiGetSummaryInformation(0, pszPackageFile, 1, &(cSummaryInfo));

MsiSummaryInfoSetProperty (MSIHANDLE(cSummaryInfo), PID_WORDCOUNT,
VT_I4, 10, 0, 0);
MsiSummaryInfoPersist( MSIHANDLE(cSummaryInfo));
------------------------------------------------------------------------------------------------------------------------------------------------

Nicolas

On May 22, 7:11 pm, "Phil Wilson"

0 new messages