Skip to content

Commit

Permalink
Update product.wxs
Browse files Browse the repository at this point in the history
  • Loading branch information
lalala123123 authored Nov 29, 2023
1 parent 4bfbfd1 commit 00b0682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/installer/windows/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@
Directory="DynamicCliDir"
Execute="commit"
ExeCommand="powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -Command pfs"
Return="check" />
Return="ignore" />
<CustomAction Id="UninstallPromptFlowService"
Directory="%ProgramFiles%\promptflow"
Directory="DynamicCliDir"
Execute="commit"
Impersonate="no"
ExeCommand="cmd.exe /c SC DELETE PromptService"
Return="ignore" />
<InstallExecuteSequence>
<Custom Action="InstallPromptFlowService" Before="InstallFinalize">NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
<Custom Action="StartPromptFlowService" Before="InstallFinalize">(NOT Installed) AND (NOT WIX_UPGRADE_DETECTED)</Custom>
<Custom Action="StartPromptFlowService" Before="InstallFinalize">NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
<Custom Action="UninstallPromptFlowService" Before="InstallFinalize">REMOVE="ALL"</Custom>
</InstallExecuteSequence>

Expand Down

0 comments on commit 00b0682

Please sign in to comment.