MSI Factory 2.3

Service.Pause

Service.Pause

This is the first topic This is the last topic  

Service.Pause

This is the first topic This is the last topic  

OverviewExamples

Service.Pause (

string DisplayName,

string KeyName = "" )

Example 1

Service.Pause("Service1", "");

Pauses the service "Service1".

Example 2

-- 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(_SourceDrive.."\\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


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us