gpt4 book ai didi

c# - 安装 .NET 4 Prerequisite Elevated 但 Application MSI perUser

转载 作者:太空宇宙 更新时间:2023-11-03 11:20:17 27 4
gpt4 key购买 nike

使用 dotNetInstaller 2.1.528

msi is always elevated with administrator_required

提高先决条件和 MSI

如以下链接所述,使用 dotNetInstaller Bootstrap 时:在“运行时”部分下,将“administrator_required”设置为“True”这将允许 dotNetInstaller 提升组件

  • 因此,当 administrator_required 为真时,安装 .NET 4 先决条件开始工作,即使用户没有使用“以管理员身份运行”运行安装程序也是如此。

  • 但现在 msi 也以提升的权限运行!即使它是为每个用户/非提升安装构建的,并且运行 msi 直接安装它也没有任何提升(使用 WiX 构建)。

dotNetInstaller:安装时的 UAC 提升 http://code.dblock.org/dotnetinstaller-uac-elevation-on-install

配置 dotNetInstaller 2.0 以安装自定义先决条件,然后以提升的权限运行自定义 exe。 http://geekswithblogs.net/JaydPage/archive/2011/03/31/configuring-dotnetinstaler-2.0-to-install-custom-prerequisites-and-then-run.aspx

如何只提升先决条件而不提升 MSI?

我的 .msi 是每个用户而不是每个机器,如果已经安装了 .NET 4 先决条件,则根本不需要提升。

  • 并且(每个用户)msi 的不必要提升具有要求提升才能卸载的进一步影响。

  • 如何实现选择性 - 提升 .NET 4 安装程序,而不是应用程序 msi?

最佳答案

先决条件应在安装时自行提升。没有办法让进程以某种方式降低自身的提升或产生一个低于自身提升的子级。

关于c# - 安装 .NET 4 Prerequisite Elevated 但 Application MSI perUser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11274023/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com