阻止MSI在SYSTEM上下文中启动EXE [英] Stopping MSI from launching an EXE in the SYSTEM context

查看:74
本文介绍了阻止MSI在SYSTEM上下文中启动EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理的MSI部署出现问题(使用 InstallShield ).我们有一个在后台运行的程序,该程序需要按用户运行,并且需要在没有用户干预的情况下自动启动.

I've got a problem here with an MSI deployment that I'm working on (using InstallShield). We have a program running in the background that needs to run per-user, and it needs to start automatically without user intervention.

问题出在组策略对象/

The problem is with Group Policy Object/Active Directory (GPO/AD) deployment the application is started in the SYSTEM context before anyone is logged in rather than as the user who is about to log in. The application can only run once per user, and it seems that the SYSTEM process prevents the USER process from starting. This means the PCs need to be rebooted twice before the software can be deployed to the users. How do we to stop this?

基本上当前的工作流程是:

Basically the current workflow is:

  1. 安装/升级运行...杀死后台应用程序
  2. 安装新文件
  3. 启动后台应用程序

这适用于已发布的应用程序和交互式 MSI 安装-它只是分配的"应用程序似乎有问题.当步骤3在SYSTEM上下文而不是用户上下文中发生时:(

This works for published applications and interactive MSI installations - it's only 'assigned' applications that seem to have the problem. As step 3 happens in the SYSTEM context rather than the user context :(

理想情况下,我希望开发团队对EXE文件进行修补,以防止在SYSTEM上下文中启动,但这已经是一个发行周期了,我正在寻找一种基于安装程序的解决方案.

Ideally, I'd have the development team patch the EXE file to prevent launching in the SYSTEM context, but that's a release cycle away, and I'm looking for an installer-based solution for the interim.

(我不知道Installscript ...所以我猜 VBScript 是如果没有我可以使用的本机InstallShield的话,可能是要走的路.)

(I don't know Installscript... So I'm guessing VBScript is probably the way to go if there's no native InstallShield stuff I can use.)

推荐答案

您可以使用 LogonUser 属性作为启动EXE的操作的条件.

You can use the LogonUser property of Windows Installer as a condition to the action launching the EXE.

这篇关于阻止MSI在SYSTEM上下文中启动EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆