(部分)从提升的命令提示符安装 WiX 生成的 MSI 失败
作为我在应用程序部署方面遇到的问题的测试用例,我按照 构建了一个 MSI WiX 简单设置教程并使用最新版本的 WiX 3.5。我的测试环境是运行64位Window 7 Ultimate的虚拟机。
如果我以标准用户身份登录(无管理权限),打开提升的命令提示符并使用 msiexec /i testproj.msi
安装 MSI,则会创建目录和文件,但不会创建测试程序列在控制面板的程序和功能部分。
如果我以具有管理权限的用户身份登录时从提升的命令提示符运行测试程序,或者从非提升的命令提示符运行测试程序,则测试程序将完全安装。在所有情况下,都会显示“Windows 配置测试包时请稍候”的对话框。
我正在虚拟机中对此进行测试,每次都恢复到预安装快照,以确保失败的安装不会造成干扰。
我已启用日志记录(例如 msiexec /i testproj.msi /L*v test.log
),并且在所有情况下,日志都指示程序安装时没有错误(返回代码为 0) 。
当以标准用户身份登录并从提升的命令提示符运行时,为什么安装无法在程序和功能列表中注册程序?
As a test case for an issue I'm having with application deployment, I built an MSI following the WiX Simple Setup tutorial and using the latest version of WiX 3.5. My test environment is a virtual machine running 64-bit Window 7 Ultimate.
If I login as an standard user (no administrative privileges), open an elevated command prompt and install the MSI using msiexec /i testproj.msi
, the directories and files are created, but the test program is not listed in the Programs and Features section of the Control Panel.
The test program installs completely if I run it from an elevated command prompt while logged in as a user with administrative privileges, or if I run it from a non-elevated command prompt. In all cases, the dialog that says "Please wait while Windows configures Test Package" is displayed.
I'm testing this in a virtual machine, reverting to a preinstall snapshot each time to make sure the failed installations aren't interfering.
I've enabled logging (e.g. msiexec /i testproj.msi /L*v test.log
), and in all cases, the log indicates the program was installed with no errors (return code of 0).
Why does the installation fail to register the program in the Programs and Features list when run from an elevated command prompt while logged in as a standard user?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从普通用户帐户安装应用程序,然后检查管理员帐户中的添加/删除程序。该条目必须存在于此处。如果您未将 ALLUSERS 值指定为 1,则可能会发生这种情况。
Install the application from normal user account and then check the Add/Remove program in the administrator account. The entry must be present there. This can occur if you haven't specified ALLUSERS value to 1.