Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - MSI Custom Action DLL does not have administrator rights

Reply
 
Old 06-13-2006   #1 (permalink)
Robert Tonsing


 
 

MSI Custom Action DLL does not have administrator rights

My deployment requires installing a service, among other things, that I do in
a custom action dll. However, it is failing because the dll does not have
administrator rights, even though during Setup the user is prompted for and
gives permission to run as an admin. Why doesn't the dll inherit the rights
of MSI? InstallShield doesn't have this problem.
--
Thanks,
Robert Tonsing

My System SpecsSystem Spec
Old 06-13-2006   #2 (permalink)
Zack Whittaker


 
 

Re: MSI Custom Action DLL does not have administrator rights

It should - if you're prompted for admin. privilages, it should inherit to
the DLL's. Having said that, MSI packages just refuse to install sometimes
if you're not an admin.

--
Zack Whittaker
» ZackNET Enterprises: www.zacknet.co.uk
» MSBlog on ResDev: www.msblog.org
» Vista Knowledge Base: www.vistabase.co.uk
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
"Robert Tonsing" <RobertTonsing@discussions.microsoft.com> wrote in message
news:62F07143-E4D1-46E6-A53E-35EA2BFA3A60@microsoft.com...
> My deployment requires installing a service, among other things, that I do
> in
> a custom action dll. However, it is failing because the dll does not have
> administrator rights, even though during Setup the user is prompted for
> and
> gives permission to run as an admin. Why doesn't the dll inherit the
> rights
> of MSI? InstallShield doesn't have this problem.
> --
> Thanks,
> Robert Tonsing



My System SpecsSystem Spec
Old 06-14-2006   #3 (permalink)
Robert Tonsing


 
 

Re: MSI Custom Action DLL does not have administrator rights

Actually, in
http://msdn.microsoft.com/library/de..._libraries.asp,
it states "The installer runs custom actions with user privileges by default
in order to limit the access of custom actions to the system.".

What I need to find out is how to override or bypass this.
--
Thanks,
Robert Tonsing


"Zack Whittaker" wrote:

> It should - if you're prompted for admin. privilages, it should inherit to
> the DLL's. Having said that, MSI packages just refuse to install sometimes
> if you're not an admin.
>
> --
> Zack Whittaker
> » ZackNET Enterprises: www.zacknet.co.uk
> » MSBlog on ResDev: www.msblog.org
> » Vista Knowledge Base: www.vistabase.co.uk
> » This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and not
> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
> that up!
>
> --: Original message follows :--
> "Robert Tonsing" <RobertTonsing@discussions.microsoft.com> wrote in message
> news:62F07143-E4D1-46E6-A53E-35EA2BFA3A60@microsoft.com...
> > My deployment requires installing a service, among other things, that I do
> > in
> > a custom action dll. However, it is failing because the dll does not have
> > administrator rights, even though during Setup the user is prompted for
> > and
> > gives permission to run as an admin. Why doesn't the dll inherit the
> > rights
> > of MSI? InstallShield doesn't have this problem.
> > --
> > Thanks,
> > Robert Tonsing

>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Account 'NAMED' Administrator vs. 'administrator rights' question Vista installation & setup
winrm invoke a custom action PowerShell
You need permission to perform this action!! to copy a file to a directory with Admin rights Vista security
Custom Keyboard action? Vista General
SetupIterateCabinet failing from Custom Action .dll Vista General


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 Ltd

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