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

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" wrote in message
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
Actually, in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/dynamic_link_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" wrote in message 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
Windows Vista
User login
Related topics
- WPA under VISTA - any idea..?
- Windows Live
- I luv my window vista
- Vista Beta 2 - Windows Photo Gallery crashes a lot
- Netgear WG111, Connects to Internet with Limited Connectivit
- Solid Video Colors sometimes on boot
- News groups
- how do i can install the beta
- Remember: Persons with Device Driver issues
- how to create a second partition om my drive so i can istall
- cd/ dvd rom
- network messaging
- Control panel issue!!!
- Download Windows Vista.
- halo problems
- nForce4 Legacy Raid?
- Nforce 430, onboard sound card and video card issues
- Using Ghost 10 to "image" a vista drive
- Sidebar crashes when adding a Gadget that uses WMP
- Installing & BSOD & D347PRT.sys
- C-Media XP driver semi-works
- svchost.exe eating CPU resources
- Not a valid win 32 application
- Vista build : 5342, Installation problem
- Err: This account does not have permission to synchronize yo
- Nforce4 (DFI Ultra Mobo) Networking Controller problem DHCP.
- Installation 32/64 quandary
- nVidia 6800GT...Blank screen after changing resolution
- Firmware
- Please excuse the cross post
- Wireless network
- Nvidia Dual tuner not recognized in Vista ultimate
- How to change default tab in IE7
- Getting started guide - updated
- Join Vista Beta 2 to Domain
- Missing application icons
- WDDM and LDDM drivers not working.
- creative 24 bit on 2x64 msi mb
- Vista & Office 12 = Severe Slowdown
- Problem running windows xp after vista installation