[VMware Launcher 2.0.9.5]

- Refactored code.
- Fixed bug: "#1 Welcome message shows despite VMware not being installed"
This commit is contained in:
2021-03-26 20:20:46 +00:00
parent 1cbdbccf77
commit 6d7fec03b4
10 changed files with 79 additions and 83 deletions
+8 -6
View File
@@ -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)