|
From: Chris on 6 May 2008 15:24 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
From: Pavel A. on 6 May 2008 16:12 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(a)discussions.microsoft.com> wrote in message news:A42F8F8C-A592-4D8D-AE89-074E3AD9DAB2(a)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
From: Chris on 6 May 2008 16:48 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(a)discussions.microsoft.com> wrote in message > news:A42F8F8C-A592-4D8D-AE89-074E3AD9DAB2(a)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 > >
From: Ray Trent on 6 May 2008 17:33 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
From: Chris on 6 May 2008 18:22 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 >
|
Pages: 1 Prev: DDK version question Next: InstallHinfSection fails on Vista with "Copy Error". |