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

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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


.



Relevant Pages

  • Vista "complaints"
    ... Recent misconceptions about Vista and UAC posted to the Focus-Apple group, ... administrator, and combined with the many configuration options Vista ... that Win XP gave her the ability to add permissions to her normal ...
    (Focus-Microsoft)
  • RE: Vista "complaints"
    ... Recent misconceptions about Vista and UAC posted to the Focus-Apple group, ... administrator, and combined with the many configuration options Vista ... run an installation file need to do so in admin mode. ... that Win XP gave her the ability to add permissions to her normal ...
    (Focus-Microsoft)
  • Re: 2003 Repair / Compact Problem
    ... I managed to compact/repair and build an ADE without incident several times ... Administrator" should have any impact. ... Currently I have Windows Vista UAC turned off, therefore not sure, without ... repair & compact my 2003 .adp files. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: 2003 Repair / Compact Problem
    ... Administrator", or to always "Run as Administrator" right mouse ... Currently I have Windows Vista UAC turned off, therefore not sure, without ... which I ususually solve by Importing all the objects into a clean ADP, ... although frequently that also gets an Unresponsive error as well. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Installation problem - non-admin users
    ... I guess I am facing an administrative privileges issue with Vista. ... Log on as an administrator or contact your system administrator. ... The user is going to be asked to give a user-id and psw to an user/admin account. ... The user account for the non-user admin in not an account that has full rights on System32. ...
    (microsoft.public.windows.vista.security)