Autostart after installation of task
This commit is contained in:
@@ -200,6 +200,14 @@
|
||||
Impersonate="no"
|
||||
/>
|
||||
|
||||
<CustomAction
|
||||
Id="StartScheduledTask"
|
||||
Directory="SystemFolder"
|
||||
ExeCommand=""[SystemFolder]schtasks.exe" /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>
|
||||
|
Reference in New Issue
Block a user