Skip to content

Commit

Permalink
Fixed scheduled task custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
fahminlb33 committed Jun 11, 2020
1 parent 2b3cae2 commit 41f178e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KFmaintenance.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@

<!-- Scheduled Task -->
<SetProperty Id="CreateScheduledTask" Sequence="execute" Before="CreateScheduledTask"
Value="&quot;[SystemFolder]SCHTASKS.EXE&quot; /CREATE /TN &quot;KFmaintenance&quot; /TR &quot;&quot;[INSTALLFOLDER]\KFmaintenance.exe&quot;&quot; /RU &quot;System&quot; /RL HIGHEST /SC ONLOGON" />
Value="&quot;[SystemFolder]SCHTASKS.EXE&quot; /CREATE /TN &quot;KFmaintenance&quot; /TR &quot;[INSTALLFOLDER]\KFmaintenance.exe&quot; /SC ONSTART" />
<CustomAction Id="CreateScheduledTask" BinaryKey="WixCA" DllEntry="WixQuietExec"
Execute="deferred" Return="ignore" Impersonate="no"/>

<SetProperty Id="RemoveScheduledTask" Sequence="execute" Before="RemoveScheduledTask"
Value="&quot;[SystemFolder]SCHTASKS.EXE&quot; /CREATE /TN &quot;KFmaintenance&quot; /TR &quot;&quot;[INSTALLFOLDER]\KFmaintenance.exe --tray&quot;&quot; /RU &quot;System&quot; /RL HIGHEST /SC ONLOGON" />
Value="&quot;[SystemFolder]SCHTASKS.EXE&quot; /DELETE /TN &quot;KFmaintenance&quot; /F" />
<CustomAction Id="RemoveScheduledTask" BinaryKey="WixCA" DllEntry="WixQuietExec"
Execute="deferred" Return="ignore" Impersonate="no"/>

Expand Down

0 comments on commit 41f178e

Please sign in to comment.