安装.NET 4先决条件提升但应用程序MSI perUser

时间:2012-06-30 12:19:07

标签: c# .net wix windows-installer dotnetinstaller

使用dotNetInstaller 2.1.528

msi is always elevated with administrator_required

提升先决条件和MSI

如下面的链接所示,使用dotNetInstaller引导程序时: 在“运行时”部分下,将“administrator_required”设置为“True” 这将允许dotNetInstaller提升组件

  • 因此,当administrator_required为true时,即使用户未使用“以管理员身份运行”运行安装程序,安装.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?

2 个答案:

答案 0 :(得分:1)

先决条件应在安装时提升自己。没有办法让这个过程以某种方式降低自己,或者产生一个比自身低的孩子。

答案 1 :(得分:1)

相关问题