Skip to content

Commit

Permalink
use WixQuietExec64
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying Chen committed Apr 21, 2024
1 parent d61960f commit 7340d36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/installer/windows/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,20 @@
<Custom Action="Set_WIXUI_EXITDIALOGOPTIONALTEXT" After="CostFinalize">NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
</InstallUISequence>

<Property Id="WixQuietExec64CmdLine" Value="&quot;[System64Folder]cmd.exe&quot; /C start /B &quot;[APPLICATIONFOLDER]pfcli.exe&quot; pf service stop"/>
<CustomAction Id="StopPromptFlowService"
Execute="immediate"
Return="ignore"
BinaryKey="WixCA"
DllEntry="WixQuietExec64"
Impersonate="yes"/>
<CustomAction Id="StartPromptFlowService"
Directory="APPLICATIONFOLDER"
Execute="deferred"
ExeCommand="wscript.exe promptflow_service.vbs"
Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom Action="StopPromptFlowService" Before="InstallInitialize">Installed OR WIX_UPGRADE_DETECTED</Custom>
<Custom Action="StartPromptFlowService" Before="InstallFinalize">NOT Installed OR WIX_UPGRADE_DETECTED</Custom>
</InstallExecuteSequence>
</Product>
Expand Down

0 comments on commit 7340d36

Please sign in to comment.