Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista General

Running installers as Admin

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 10-03-2006   #1 (permalink)
John Dough
Guest


 

Running installers as Admin

Is there a way I can re-design my installer (MSI) to always require the user
to run it in as an administrator? As in "In administrator compatability
mode".

My installer already cheks if the user is an admin, but as you know in
Vista, this is not the same as in XP - the admin may not be running the
installer with "admin priviledges". So when I download my installer to
Vista and run it - it executes, but silently fails to perform some key
operations during the install. If I use the Vista compatability wizard, and
set the installer to run as an admin - everything is OK.

TIA
Z.



My System SpecsSystem Spec
Old 10-04-2006   #2 (permalink)
=?Utf-8?B?Um9uIFJlY3Rvcg==?=
Guest


 

RE: Running installers as Admin

Maybe right click on the msi installer and go to the compatibility tab. There
may be an option to run as Administrator there.

"John Dough" wrote:

> Is there a way I can re-design my installer (MSI) to always require the user
> to run it in as an administrator? As in "In administrator compatability
> mode".
>
> My installer already cheks if the user is an admin, but as you know in
> Vista, this is not the same as in XP - the admin may not be running the
> installer with "admin priviledges". So when I download my installer to
> Vista and run it - it executes, but silently fails to perform some key
> operations during the install. If I use the Vista compatability wizard, and
> set the installer to run as an admin - everything is OK.
>
> TIA
> Z.
>
>
>

My System SpecsSystem Spec
Old 10-04-2006   #3 (permalink)
John Dough
Guest


 

Re: Running installers as Admin


"Ron Rector" <RonRector@discussions.microsoft.com> wrote
> Maybe right click on the msi installer and go to the compatibility tab.
> There
> may be an option to run as Administrator there.


Or the user can explicitly "Run Elevated...". I understand this. That is
not what I am after.

What I want to know is how to I program my MSI so that it can detect that
the user is not already "running elevated" and warn them with explict
instructions on what to do and stop the installation.

Help!




My System SpecsSystem Spec
Old 10-04-2006   #4 (permalink)
Tyler Hunt [MS]
Guest


 

Re: Running installers as Admin

Custom actions have this magical bit that says whether or not the custom
action runs as the service or as the invoking user.

This might help clear things up:
http://blogs.msdn.com/rflaming/archi...23/768248.aspx
http://blogs.msdn.com/heaths/

You should be able to run an MSI without requiring it to be pre-elevated.

"John Dough" <nope@spamme.biz> wrote in message
news:JLPUg.93829$R63.11730@pd7urf1no...
>
> "Ron Rector" <RonRector@discussions.microsoft.com> wrote
>> Maybe right click on the msi installer and go to the compatibility tab.
>> There
>> may be an option to run as Administrator there.

>
> Or the user can explicitly "Run Elevated...". I understand this. That
> is not what I am after.
>
> What I want to know is how to I program my MSI so that it can detect that
> the user is not already "running elevated" and warn them with explict
> instructions on what to do and stop the installation.
>
> Help!
>
>
>
>



My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modify PowerShell prompt when running as admin Marc Scheuner PowerShell 2 10-14-2007 03:41 PM
How good is Vista about automatically running installers as administrator? Milhouse Van Houten Vista security 11 05-09-2007 11:49 PM
Cant open IE7 without running as admin on Vista SweetTater4Matthew Vista account administration 2 03-11-2007 09:50 AM
Is it possible for a service to start a user app running with admin privilege? Polaris Vista security 10 02-16-2007 08:30 AM
Running as an Admin with prompts vs Standard? =?Utf-8?B?R3JhbnQ=?= Vista account administration 2 07-16-2006 05:22 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51