Autostart after installation of task

This commit is contained in:
Azamat H. Hackimov
2017-06-29 00:43:03 +05:00
parent 6d464f5e4b
commit cecdddf69f

View File

@@ -200,6 +200,14 @@
Impersonate="no"
/>
<CustomAction
Id="StartScheduledTask"
Directory="SystemFolder"
ExeCommand="&quot;[SystemFolder]schtasks.exe&quot; /Run /TN wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
Execute="deferred"
Impersonate="no"
/>
<CustomAction
Id="RollbackScheduledTask"
Directory="SystemFolder"
@@ -225,6 +233,7 @@
<InstallExecuteSequence>
<Custom Action="OverwriteWixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
<Custom Action="CreateScheduledTask" Before="InstallFinalize">NOT Installed</Custom>
<Custom Action="StartScheduledTask" After="CreateScheduledTask">NOT Installed</Custom>
<Custom Action="RollbackScheduledTask" Before="CreateScheduledTask">NOT Installed</Custom>
<Custom Action="RemoveScheduledTask" Before="InstallFinalize">REMOVE ~= "ALL"</Custom>
</InstallExecuteSequence>