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
Command line WIX-如何向文件中添加命令参数_Command Line_Wix_Installation - Fatal编程技术网

Command line WIX-如何向文件中添加命令参数

Command line WIX-如何向文件中添加命令参数,command-line,wix,installation,Command Line,Wix,Installation,我已经做了一个WIX安装程序,我希望我的主应用程序.exe文件使用命令行参数运行。我有以下几行: <File Id="MyApplicationExe.exe" Source="$(var.SourceFilesPath)MyApplicationExe.exe" KeyPath="yes" Checksum="yes"/> 对于标记文件,我找不到任何名为Arguments或Command的属性 有人知道在WIX中是否可以向文件中添加命令吗?您发布的片段基本上只是意味着,在安装

我已经做了一个WIX安装程序,我希望我的主应用程序.exe文件使用命令行参数运行。我有以下几行:

<File Id="MyApplicationExe.exe" Source="$(var.SourceFilesPath)MyApplicationExe.exe" KeyPath="yes" Checksum="yes"/>

对于标记文件,我找不到任何名为Arguments或Command的属性


有人知道在WIX中是否可以向文件中添加命令吗?

您发布的片段基本上只是意味着,在安装安装程序时,“MyApplicationExe.exe”应该复制到目标系统。它没有说明如何启动你的应用程序

如果您想要一个用特定命令行启动应用程序的快捷方式(在“开始”菜单中),那么您可以创建一个

查看有关创建快捷方式的手册:


要指定命令行参数,请使用“”元素的“arguments”属性。

好的,我对wix没有太多的作用。你的建议会奏效的,谢谢!