From: JY on
Hi,

I'm uisng DriverPackagePreinstall to pre-install a PnP driver on freshly
installed Vista 32-bit and Windows 7 32-bit systems (with Windows Updates
done). I'm logged in as Administrator. When my application tries to
pre-install the driver the error code returned is ERROR_ACCESS_DENIED. The
only flag I use in the call is DRIVER_PACKAGE_LEGACY_MODE, but here I'm
trying to pre-install a signed driver.

What could be going wrong?

TIA,
Jy
From: Maxim S. Shatskih on
Start CMD with "Run As Administrator" and try from there.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

"JY" <sd(a)nospamgroup.com> wrote in message news:BA385AD4-B22C-4326-9324-491BD4BB9875(a)microsoft.com...
> Hi,
>
> I'm uisng DriverPackagePreinstall to pre-install a PnP driver on freshly
> installed Vista 32-bit and Windows 7 32-bit systems (with Windows Updates
> done). I'm logged in as Administrator. When my application tries to
> pre-install the driver the error code returned is ERROR_ACCESS_DENIED. The
> only flag I use in the call is DRIVER_PACKAGE_LEGACY_MODE, but here I'm
> trying to pre-install a signed driver.
>
> What could be going wrong?
>
> TIA,
> Jy
From: Mike [MSFT] on
Depending on whether you logged in as an administrator or the local
administrator account, Maxim's suggestion might help.

One thing to try is to open an Admin cmd prompt, go to the directory where
your driver is and do "pnputil -a yourdriver.inf" to see if it is a problem
with your driver or how you are calling DriverPackagePreinstall.

If that gives you an error you can try checking
%windir%\inf\setupapi.dev.log to get more information.

-Mike

"Maxim S. Shatskih" <maxim(a)storagecraft.com.no.spam> wrote in message
news:eFYVPc82KHA.3844(a)TK2MSFTNGP05.phx.gbl...
> Start CMD with "Run As Administrator" and try from there.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> "JY" <sd(a)nospamgroup.com> wrote in message
> news:BA385AD4-B22C-4326-9324-491BD4BB9875(a)microsoft.com...
>> Hi,
>>
>> I'm uisng DriverPackagePreinstall to pre-install a PnP driver on freshly
>> installed Vista 32-bit and Windows 7 32-bit systems (with Windows Updates
>> done). I'm logged in as Administrator. When my application tries to
>> pre-install the driver the error code returned is ERROR_ACCESS_DENIED.
>> The
>> only flag I use in the call is DRIVER_PACKAGE_LEGACY_MODE, but here I'm
>> trying to pre-install a signed driver.
>>
>> What could be going wrong?
>>
>> TIA,
>> Jy