使用WIX Bootstrapper执行带参数的exe文件

时间:2013-07-16 07:15:36

标签: wix bootstrapper wix3.7

我想通过使用Bootstrapper传递参数来执行exe文件说sample.exe。问题是bootstrapper应用程序无法执行exe。 有什么建议吗?

更新:

我有一个包含以下内容的bat文件:

start /d "D:\Setup\DBInstaller\bin\Release" DBInstaller.exe 

我在Bundle.wxs上的代码是

<ExePackage Id="ExecuteScripts" 
  Vital="yes" 
  InstallCondition="RadioButton3 = 1" 
  Permanent="yes" 
  PerMachine="yes" 
  SourceFile="$(var.dir)ExecuteScripts.bat" 
  InstallCommand="&quot;[WixBundleLastUsedSource]DBInstaller.exe&quot; D:\Setup\DatabaseSettings.xml" 
  DetectCondition="true"> 
</ExePackage> 

我发送XML文件的路径作为参数。

ERROR MSG:无效功能

0 个答案:

没有答案
相关问题