gpt4 book ai didi

parameters - WiX 和启动程序 - 是否可以传递参数?

转载 作者:行者123 更新时间:2023-12-04 23:03:21 26 4
gpt4 key购买 nike

我有一个 WiX 包,安装后应用程序启动:

<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch MyProgram" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
<Property Id="WixShellExecTarget" Value="[#MainExe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />

我想将 WiX 包的语言传递给我的程序。是否可以?

最佳答案

有用:

<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
<Property Id="LANGUAGE" Admin="yes" />

<CustomAction Id="LaunchApplication"
FileKey="MainExe"
ExeCommand="[LANGUAGE]"
Execute="immediate"
Impersonate="yes"
Return="asyncNoWait" />

<!-- icon for add/remove programs -->
<Property Id="ARPPRODUCTICON" Value="ProgramIcon.exe" />

<!-- Интерфейс пользователя (подключается отдельной сборкой) -->
<UI Id="MyWixUI_Mondo">
<UIRef Id="WixUI_Minimal" />
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
<UIRef Id="WixUI_ErrorProgressText"/>
</UI>

关于parameters - WiX 和启动程序 - 是否可以传递参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17633768/

26 4 0