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

=?UTF-8?Q?Re:_InstallHinfSection_fails_on_?= by Pavel

Pavel
Tue May 06 15:12:52 CDT 2008

InstallHinfSection never was a supported way to install drivers.
Whoever created that XP setup with it, ignored many warnings that
this could stop working in future, and now this future arrived.
You can't get away with it in Vista.
Please read on microsoft.com/whdc and in the WDK docum
what are the supported vehicles to install drivers.

Good luck,
--PA


"Chris" <Chris@discussions.microsoft.com> wrote in message
news:A42F8F8C-A592-4D8D-AE89-074E3AD9DAB2@microsoft.com...
> 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


=?Utf-8?Q?Re:_InstallHinfSection_fails_on_?= by Chris

Chris
Tue May 06 15:48:30 CDT 2008

Pavel, thanks for your response...

Again, this is a filter driver. The documentation instructs the sue of the
SetupAPI's InstallInfSection to install filter drivers:

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

Again, this works fine in XP and in Vista if it's run as as the computer
administrator - a standard administrator user causes it to fail since they
can't write to the drivers directory.


Thanks,
Chris

"Pavel A." wrote:

> InstallHinfSection never was a supported way to install drivers.
> Whoever created that XP setup with it, ignored many warnings that
> this could stop working in future, and now this future arrived.
> You can't get away with it in Vista.
> Please read on microsoft.com/whdc and in the WDK docum
> what are the supported vehicles to install drivers.
>
> Good luck,
> --PA
>
>
> "Chris" <Chris@discussions.microsoft.com> wrote in message
> news:A42F8F8C-A592-4D8D-AE89-074E3AD9DAB2@microsoft.com...
> > 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
>
>

Re: InstallHinfSection fails on Vista with =?UTF-8?B?4oCcQ29weSBF?= by Ray

Ray
Tue May 06 16:33:34 CDT 2008

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

=?Utf-8?Q?Re:_InstallHinfSection_fails_on_?= by Chris

Chris
Tue May 06 17:22:01 CDT 2008

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
>

=?iso-8859-1?Q?Re:_InstallHinfSection_fails_on_Vista_with_=22Copy_Error?= by Pavel

Pavel
Tue May 06 17:32:40 CDT 2008

ah. sorry I haven't noticed it is a filesystem filter :( So it's a #&$^! UAC
issue.

--PA

"Chris" <Chris@discussions.microsoft.com> wrote in message
news:79CF0033-F965-4219-A5DF-58C2A4C4ABA1@microsoft.com...
> Pavel, thanks for your response...
>
> Again, this is a filter driver. The documentation instructs the sue of the
> SetupAPI's InstallInfSection to install filter drivers:
>
> http://msdn.microsoft.com/en-us/library/ms790731.aspx
>
> Again, this works fine in XP and in Vista if it's run as as the computer
> administrator - a standard administrator user causes it to fail since they
> can't write to the drivers directory.
>
>
> Thanks,
> Chris
>
> "Pavel A." wrote:
>
>> InstallHinfSection never was a supported way to install drivers.
>> Whoever created that XP setup with it, ignored many warnings that
>> this could stop working in future, and now this future arrived.
>> You can't get away with it in Vista.
>> Please read on microsoft.com/whdc and in the WDK docum
>> what are the supported vehicles to install drivers.
>>
>> Good luck,
>> --PA
>>
>>
>> "Chris" <Chris@discussions.microsoft.com> wrote in message
>> news:A42F8F8C-A592-4D8D-AE89-074E3AD9DAB2@microsoft.com...
>> > Iâ?Tm using InstallHinfSection to install my filter driver. This works
>> > well
>> > on
>> > XP. On Vista 32 it fails with a â?oCopy Errorâ?? when I use an
>> > Administrator
>> > account. InstallHinfSection obviously requires â?ocomputer
>> > administratorâ??
>> > access to copy the driver to the drivers directory. My MSI setup checks
>> > for
>> > Administrator access and it passes since Iâ?Tm an administer, however
>> > InstallHinfSection eventually fails because it doesnâ?Tt 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â?Tre an Administrator?
>> >
>> > Thanks!
>> > Chris Harper
>>
>>

Re: InstallHinfSection fails on Vista with "Copy Error". by Adrian

Adrian
Wed May 07 15:29:28 CDT 2008

"Chris" <Chris@discussions.microsoft.com> wrote in message
news:23EFE6A8-89C0-4EF1-8EF3-8A4294B4A974@microsoft.com...
> 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