Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix Burn-MSI包和模拟_Wix_Burn_Wix3.7 - Fatal编程技术网

Wix Burn-MSI包和模拟

Wix Burn-MSI包和模拟,wix,burn,wix3.7,Wix,Burn,Wix3.7,我有一个msi,允许用户有条件地启动已安装的应用程序。msi是使用Wix创建的,包含以下xml语句: <CustomAction Id='LaunchApplication' FileKey='foo.exe' ExeCommand='' Return="asyncNoWait" Impersonate="yes" /> <MsiPackage Id="FooMsi" SourceFile="$(var.Installer.TargetPath)" DisplayIntern

我有一个msi,允许用户有条件地启动已安装的应用程序。msi是使用Wix创建的,包含以下xml语句:

<CustomAction Id='LaunchApplication' FileKey='foo.exe' ExeCommand='' Return="asyncNoWait" Impersonate="yes" />
<MsiPackage Id="FooMsi" SourceFile="$(var.Installer.TargetPath)" DisplayInternalUI="yes" Vital="yes" Permanent="no" />

msi在提升状态下运行,但模拟选项保证应用程序作为安装用户启动

msi使用以下语句包含在我的Burn软件包中:

<CustomAction Id='LaunchApplication' FileKey='foo.exe' ExeCommand='' Return="asyncNoWait" Impersonate="yes" />
<MsiPackage Id="FooMsi" SourceFile="$(var.Installer.TargetPath)" DisplayInternalUI="yes" Vital="yes" Permanent="no" />

但是,在msi运行之前会提升Burn,因此会以管理员身份运行应用程序


是否有Burn的模拟选项,或者我必须从Burn启动应用程序吗?

Burn从提升的助手进程启动每台机器的程序包,以便MSI模拟提升的用户。无法告诉MSI模拟其他用户和/或不同的权限。您可以使用的LaunchTarget属性从不相关的刻录进程启动进程。

感谢您的澄清!我正在使用一个自定义/托管引导程序,因此我假设可以使用LauchTarget变量来代替它?LaunchTarget是WixStdBA的一个功能。由于您使用的是自定义BA,因此需要在自己的代码中处理UI和流程启动。