「应用程式和应用程式」的解决方法Windows 10中的“功能"启动提升的单用户卸载程序 [英] Workaround for 'Apps & features' in Windows 10 starting a single-user uninstaller elevated

查看:127
本文介绍了「应用程式和应用程式」的解决方法Windows 10中的“功能"启动提升的单用户卸载程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户尝试使用添加/删除程序"卸载自己的单用户安装(例如,使用 lowestprivileges none HKCU条目安装)在控制面板中,一切正常(也就是说,非管理员用户可以卸载自己的非管理员安装).

When users try to uninstall their own single user installation (for example installed using lowestprivileges none and HKCU entries) with 'Add/Remove Programs' in the Control Panel, everything works fine (that is, non-admin users can uninstall their own non-admin installation).

但是,当用户从'Apps&功能" (Windows 10).

However the uninstaller will be elevated, when users start it from 'Apps & features' (Windows 10).

这似乎是Windows 10的已知错误:
如何防止标准Windows 10用户提升卸载程序?

This seems to be a known Windows 10 bug:
How to prevent uninstaller elevating for Standard Windows 10 user?

'Apps&功能? 将此NSIS链接 Windows卸载程序提升错误的解决方法.

Is there a way to work-around this issue when the Inno Setup uninstaller is started from 'Apps & features'? Link this NSIS Workaround for Windows uninstaller elevation bug.

推荐答案

您将必须完全

  • 找出什么是Windows GUI用户(并假定您应以该用户身份卸载).或者,您可以将用户名存储到安装文件夹中的某个文件中.

    1. Find out what is the Windows GUI user (and assume that you should uninstall as that user). Alternatively, you can store the username into some file in the installation folder.

    以该用户身份重新执行安装程序.该黑客使用 StdUtils NSIS插件及其ExecShellAsUser功能.也许可以从Inno Setup中使用DLL.如果没有,您至少可以重用其代码.

    Re-execute the installer as that user. That hack uses StdUtils NSIS plug-in with its ExecShellAsUser function. Maybe the DLL can be used from Inno Setup. If not, you can at least reuse its code.

    在一个问题中要问的所有这些都是很重要的.如果您有特定的问题,请考虑提出更多特定的问题.

    All this is imo to much to ask in a single question. If you have specific problems, consider asking more specific questions.

    更简单的选择是防止以其他用户身份执行时卸载,并向用户显示建议,改为转到控制面板".

    Simpler alternative would be to prevent the uninstallation, when executed as different user, and show a suggestion to the user to go to Control panel instead.

    有关类似问题,请参见标准Windows用户遇到的卸载程序问题.

    For a similar question, see Uninstaller trouble with standard Windows user.

    这篇关于「应用程式和应用程式」的解决方法Windows 10中的“功能"启动提升的单用户卸载程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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