Skip to content

Commit

Permalink
reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
lalala123123 committed Nov 17, 2023
1 parent 12dbcc6 commit 78fdf7d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/installer/windows/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,18 @@
Directory="DynamicCliDir"
Execute="commit"
Impersonate="no"
ExeCommand="cmd.exe /c SC CREATE PromptService "displayname=Prompt Flow Service" start=auto type=userown binPath= "\""""%ProgramFiles%\promptflow\pfs.exe\"""""
ExeCommand="cmd.exe /c SC CREATE PromptFlowService "displayname=Prompt Flow Service" start=auto type=userown binPath= "\"%ProgramFiles%\promptflow\pfs.exe\"""
Return="check" />
<InstallExecuteSequence>
<Custom Action="InstallPromptFlowService" Before="InstallFinalize">NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
</InstallExecuteSequence>

<CustomAction Id="UninstallPromptFlowService"
Directory="DynamicCliDir"
Execute="commit"
Impersonate="no"
ExeCommand="cmd.exe /c SC DELETE PromptService"
Return="check" />
<InstallExecuteSequence>
<Custom Action="UninstallPromptFlowService" Before="InstallFinalize">REMOVE="ALL"</Custom>
<Custom Action="InstallPromptFlowService" Before="InstallFinalize">NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
<Custom Action="UninstallPromptFlowService" Before="InstallFinalize">REMOVE="ALL"</Custom>
<ScheduleReboot After='InstallFinalize' />
</InstallExecuteSequence>

</Product>
Expand Down

0 comments on commit 78fdf7d

Please sign in to comment.