当应用程序以不同用户身份启动时安装程序运行

发布于 2024-09-12 04:28:43 字数 524 浏览 2 评论 0原文

我有一个使用 WIX 3.0 构建的安装程序,并且在尝试以与运行该安装程序的用户不同的用户身份运行已安装的应用程序时遇到问题。

当我尝试以与运行安装程序的用户不同的用户身份运行已安装的应用程序时,安装程​​序会尝试再次运行(此时已安装)并弹出一些错误对话框,并且应用程序将无法运行。

我不确定发生了什么,我认为这可能与我没有定义 Product/@InstallScope 有关。所以我将 @InstallScope 定义为“perMachine”,但这没有任何其他效果。

以前见过这个的人可以给我一些关于可以采取什么措施来解决它的见解吗?

这是包部分:

<Package
  Id="*"
  Description="$(var.ProductName)"
  InstallerVersion="301"
  Compressed="yes"
  ReadOnly="yes"
  InstallPrivileges="elevated"
  InstallScope="perMachine" />

I have an installer built using WIX 3.0 and have a problem when trying to run the installed application as a different user than the user that ran the installer.

When I try to run the installed application as a different user than the user that ran the installer, the installer tries to run again (it's already installed at this point) and pops up some error dialogs and the application won't run.

I'm not sure what's going on, I thought it might be related to me not defining Product/@InstallScope. So I defined @InstallScope as "perMachine", but that didn't have any other effect.

Anyone seen this before that can give me some insight as to what can be done to fix it?

Here is the Package section:

<Package
  Id="*"
  Description="$(var.ProductName)"
  InstallerVersion="301"
  Compressed="yes"
  ReadOnly="yes"
  InstallPrivileges="elevated"
  InstallScope="perMachine" />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离线来电— 2024-09-19 04:28:43

查看应用程序事件日志(按源 MsiInstaller 过滤)。听起来您有一些每个用户的密钥路径,并且日志会告诉您组件 ID 是什么。

Take a look at the application event log ( filter by source MsiInstaller ). It sounds like you have some per-user keypaths and the log will tell you what the component ID is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文