Windows 7中具有标准用户特权的dpinst.exe行为 [英] dpinst.exe behaviour in windows 7 with standard user privilege

查看:118
本文介绍了Windows 7中具有标准用户特权的dpinst.exe行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在驱动程序包中使用了dpint.exe。我正在Windows 7 64位操作系统中遇到以下情况。


启用UAC后,它可以在admin模式(具有admin
特权的用户),标准用户模式和guest虚拟机中按预期工作模式。 (即在标准用户模式和访客模式
中提示
窗口,要求管理员密码)。



禁用UAC时,在管理员模式下(具有管理员权限的用户),它
从不显示任何显示您是否要允许以下
程序对此计算机进行更改的窗口。 (此行为也是
预期的一个!!)在标准用户模式下,当我单击驱动程序
可执行安装程序时(内部调用dpinst.exe),系统
会提示我重新启动说后台进程正在运行
,您是否要强制重新启动。在访客登录模式下,还会出现
弹出窗口,显示 Setup.exe停止工作。如果以上问题
是因为 Dpinst.exe需要管理员权限,为什么Windows
没有显示警告消息而是被挂起了??


以及如何告诉用户更改为管理员才能继续安装。.

解决方案

您可以告诉用户更改为管理员以继续仅通过检测用户在其下运行的凭据来实现。禁用UAC时,安装包必须负责此任务并检测是否需要管理凭据才能安装该应用程序。

一个非常非常好的 UAC和清单的概述对此进行了解释


I'm using dpint.exe in my driver package. I'm facing the below mentioned scenario's in Windows 7 64 bit os.

When UAC Enabled, It works as expected in admin mode( user with admin privileges ) , standard user mode and in guest mode. ( i.e., promts a window asking for admin password in standard user mode and guest mode ).

When UAC is disabled, In Admin mode ( user with admin privileges ) it "never" shows any windows saying "Do you want to allow the following program to make changes to this computer". ( this behaviour also an expected one!! ) "BUT IN STANDARD USER MODE WHEN I CLICK THE DRIVER INSTALLER EXECUTABLE ( Which calls dpinst.exe internally ) THE SYSTEM HANGS AND WHEN I TRY TO RESTART IT SAYS A BACKGROUND PROCESS IS RUNNING AND DO YOU WANT TO FORCE RESTART. In guest login mode also a popup occurs showing "Setup.exe stopped working". If the above problem is because of "Dpinst.exe needs an admin privilege" why does windows didnt show a warning message instead gets hanged??

And how to tell the user that change to administrator to continue with installation..

解决方案

You can "tell the user that change to administrator to continue" only by detecting the credentials the user is running under. When UAC is disabled, the installation package must take care of this task and detect whether Administrative credentials will be needed to install the application. This information is often configured in the Manifest of the application to install.

A really really good overview of UAC and Manifest explains this

这篇关于Windows 7中具有标准用户特权的dpinst.exe行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆