Re: InstallHinfSection fails on Vista with "Copy Error".
- From: "Adrian Accinelli" <hclnospamalias2@xxxxxxxxxxxxxxxx>
- Date: Wed, 7 May 2008 16:29:28 -0400
"Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:23EFE6A8-89C0-4EF1-8EF3-8A4294B4A974@xxxxxxxxxxxxxxxx
Ray, that led me to the solution. Packaged as an exe, the driver installs
with no problems on Vista. I assume Vista elevates when it's an exe but
not as an msi.
Thanks.
"Ray Trent" wrote:
Manifest your install app to require elevation (or it's possible you can
just call it setup.exe... Vista has some heuristics for that). You'll
get a UAC prompt... which is by design.
Chris wrote:
I'm using InstallHinfSection to install my filter driver. This works--
well on XP. On Vista 32 it fails with a "Copy Error" when I use an
Administrator account. InstallHinfSection obviously requires
"computer administrator" access to copy the driver to the drivers
directory. My MSI setup checks for Administrator access and it
passes since I'm an administer, however InstallHinfSection
eventually fails because it doesn't have the access it requires.
How can I get InstallHinfSection to be successful using a standard
Administrator account or how can I get the Setup to determine the
user has insufficient previledges even when they're an Administrator?
Thanks!
Chris Harper
Ray
Chris -- all MSI packages are assumed to require elevated privileges in
Vista unless you explicitly author the Word Count Summary property of the
Summary Information stream with bit 3 enabled.
If you are seeing different behaviour when you elevate your setup.exe versus
using the MSI file directly then it is because one or more of your custom
actions do not include msidbCustomActionTypeNoImpersonate 0x800 (2048) in
their Custom action type . Without this bit enabled the custom action code
runs in the context of the non-elevated user rather than the local system
account.
If you have trouble making changes to your MSI to get this to work then post
to microsoft.public.platformsdk.msi for help.
Sincerely,
Adrian Accinelli
.
- References:
- InstallHinfSection fails on Vista with “Copy Error”.
- From: Chris
- Re: InstallHinfSection fails on Vista with “Copy Error”.
- From: Ray Trent
- Re: InstallHinfSection fails on Vista with “Copy Error”.
- From: Chris
- InstallHinfSection fails on Vista with “Copy Error”.
- Prev by Date: Poblem to install x64 driver from 32-bit code
- Next by Date: Re: USB-HID device driver
- Previous by thread: Re: InstallHinfSection fails on Vista with “Copy Error”.
- Next by thread: Re: WPP & KMDF Crash
- Index(es):
Relevant Pages
|