Autostart after installation of task
This commit is contained in:
@@ -200,6 +200,14 @@
|
|||||||
Impersonate="no"
|
Impersonate="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<CustomAction
|
||||||
|
Id="StartScheduledTask"
|
||||||
|
Directory="SystemFolder"
|
||||||
|
ExeCommand=""[SystemFolder]schtasks.exe" /Run /TN wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
|
||||||
|
Execute="deferred"
|
||||||
|
Impersonate="no"
|
||||||
|
/>
|
||||||
|
|
||||||
<CustomAction
|
<CustomAction
|
||||||
Id="RollbackScheduledTask"
|
Id="RollbackScheduledTask"
|
||||||
Directory="SystemFolder"
|
Directory="SystemFolder"
|
||||||
@@ -225,6 +233,7 @@
|
|||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom Action="OverwriteWixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
|
<Custom Action="OverwriteWixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
|
||||||
<Custom Action="CreateScheduledTask" Before="InstallFinalize">NOT Installed</Custom>
|
<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="RollbackScheduledTask" Before="CreateScheduledTask">NOT Installed</Custom>
|
||||||
<Custom Action="RemoveScheduledTask" Before="InstallFinalize">REMOVE ~= "ALL"</Custom>
|
<Custom Action="RemoveScheduledTask" Before="InstallFinalize">REMOVE ~= "ALL"</Custom>
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
|
Reference in New Issue
Block a user