[VMware Launcher 2.0.9.5]
- Refactored code. - Fixed bug: "#1 Welcome message shows despite VMware not being installed"
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VMwareLauncher
|
||||
{
|
||||
public class ServiceControl
|
||||
{
|
||||
public static readonly List<string> DefaultVmwareServices = new List<string> { "VMnetDHCP", "VMUSBArbService", "VMware NAT Service", "VMwareHostd", "VMAuthdService" }; //Array of services to close
|
||||
public List<string> ServiceList { get; set; }
|
||||
public static readonly List<string> VMwareServiceList = new List<string> //Array of services to close
|
||||
{
|
||||
"VMnetDHCP",
|
||||
"VMUSBArbService",
|
||||
"VMware NAT Service",
|
||||
"VMwareHostd",
|
||||
"VMAuthdService" };
|
||||
|
||||
public bool ForceServicesManual()
|
||||
{
|
||||
@@ -19,7 +21,7 @@ namespace VMwareLauncher
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var service in ServiceList)
|
||||
foreach (var service in VMwareServiceList)
|
||||
{
|
||||
string currentService = winServices + "\\" + service;
|
||||
if ((int)Registry.GetValue(currentService, "Start", null) != 3)
|
||||
|
||||
Reference in New Issue
Block a user