[VMware Launcher 2.0.9.5]
- Refactored code. - Fixed bug: "#1 Welcome message shows despite VMware not being installed"
This commit is contained in:
@@ -6,7 +6,7 @@ namespace VMwareLauncher
|
||||
{
|
||||
public class CheckDependencies
|
||||
{
|
||||
private BackgroundWorker performInitialChecks = new BackgroundWorker();
|
||||
private readonly BackgroundWorker performInitialChecks = new BackgroundWorker();
|
||||
|
||||
public void PerformCheck()
|
||||
{
|
||||
@@ -14,22 +14,20 @@ namespace VMwareLauncher
|
||||
if (!File.Exists(ProcessControl.DefaultVmwarePath))
|
||||
{
|
||||
MessageHandler.Show(MessageHandler.MessageCode.VmwareNotInstalled);
|
||||
|
||||
ApplicationControl.BlockingErrors = true;
|
||||
ApplicationControl.Shutdown(-1);
|
||||
}
|
||||
|
||||
// Determine if VML has ever run before.
|
||||
string vmlPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\VmwareLauncher";
|
||||
string vmlKey = "HasBeenSetup";
|
||||
|
||||
if (Registry.GetValue(vmlPath, vmlKey, null) == null)
|
||||
else
|
||||
{
|
||||
Registry.SetValue(vmlPath, vmlKey, 1);
|
||||
MessageHandler.Show(MessageHandler.MessageCode.WelcomeMessage);
|
||||
}
|
||||
// Determine if VML has ever run before.
|
||||
string vmlPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\VmwareLauncher";
|
||||
string vmlKey = "HasBeenSetup";
|
||||
|
||||
// Modify service status to manual.
|
||||
ApplicationControl.BlockingErrors = Startup.serviceControl.ForceServicesManual();
|
||||
if (Registry.GetValue(vmlPath, vmlKey, null) == null)
|
||||
{
|
||||
Registry.SetValue(vmlPath, vmlKey, 1);
|
||||
MessageHandler.Show(MessageHandler.MessageCode.WelcomeMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user