OverviewExamples
Service.Pause ( |
Service.Pause("Service1", "");
Pauses the service "Service1".
-- Specify the antivirus service display name
VirusScannerServiceName = "AntiVirus";
-- Pause the virus scanner
Service.Pause(VirusScannerServiceName, "");
-- Run the setup which cannot be run while a virus scanner is active
File.Run(_SourceFolder.."\\setup2.exe"), "", "", SW_SHOWNORMAL, true);
-- Resume the virus scanner
Service.Continue(VirusScannerServiceName, "");
Pauses the specified virus scanner service before launching a separate setup file.
See also: Related Actions