如何强制将参数从 WIX 工具集配置文件传递到快捷方式?

How do I enforce an argument to be passed into the Shortcut from a WIX Toolset Configuration File?

我正在使用 WIX 工具集创建 MSI。

我希望我的快捷方式能够使用“/config”调用 EXE。我该怎么做?

基本上我的程序是,比方说,叫做 "Program.exe"。如果我 运行 它使用 cmd,我想 运行 它如下:

Program.exe /config

我如何设置从 MSI 安装程序创建的快捷方式,以便它调用上面的而不只是

Program.exe

使用快捷方式元素上的 Arguments 属性来设置要传递给应用程序的任何属性:

 <Shortcut Id="ApplicationStartMenuShortcut" 
           Name="My Application Name"
           Description="My Application Description"
           Target="Program.exe"
           Arguments="/config"/>