uninstall method

Future<void> uninstall(
  1. String role
)

Stops and deletes the task for role.

Implementation

Future<void> uninstall(String role) async {
  final tn = taskName(role);
  await _run('schtasks.exe', endArgs(tn)); // best effort (may not be running)
  await _check('schtasks.exe', deleteArgs(tn), 'delete task');
}