为什么msi软件包更新在安装时不需要管理员权限?

时间:2016-12-30 09:48:41

标签: wix windows-installer

我在C:\ Users \ user_name \ AppData \ Local \ Apps中为单个用户安装了msi包。安装并不需要提升权限,但是当我想使用命令更新此包时:

MSIExec /fvamus xxx.msi REINSTALL=ALL /l*xv runmsi.log

出现UAC提示。

更新日志包含不需要提升的信息:

MSI (s) (C4:F0) [07:44:31:503]: Determined that existing product (either   this product or the product being upgraded with a patch) is a dual mode package installed in per-user mode.
[...]
MSI (s) (C4:F0) [07:44:31:504]: MSI_LUA: Package is a dual mode package and is being installed in Per-User mode. No elevation is required.
[...]
MSI (s) (C4:F0) [07:44:32:072]: MSI_LUA: Entering Credential Request. hwnd = 1376978, MsiAction = 3, productname = X, version = 5.1.0.0201, language = 1045, manufacturer = X
MSI (s) (C4:F0) [07:44:32:072]: MSI_LUA:  (continued)... packagepath = C:\WINDOWS\Installer\1ac6cc.msi, packagesource = C:\Users\xxx\Temp\xxx_update\xxx.msi, dwUpdates = 0
MSI (s) (C4:F0) [07:44:33:242]: MSI_LUA: Credential Request return = 0x800704C7

已安装的软件包和更新的软件包使用相同的正确证书进行签名。我在Windows 10上使用Anniversary Update测试了这个场景。

0 个答案:

没有答案