diff --git a/source/Cosmos.Build.Builder/CosmosTask.cs b/source/Cosmos.Build.Builder/CosmosTask.cs index f0685423c0..9168cebc13 100644 --- a/source/Cosmos.Build.Builder/CosmosTask.cs +++ b/source/Cosmos.Build.Builder/CosmosTask.cs @@ -172,9 +172,15 @@ protected int NumProcessesContainingName(string name) protected bool IsVMWareInstalled() { //Check registry keys - if (CheckForInstall("VMware Workstation", false)) return true; - if (CheckForInstall("VMware Player", false)) return true; - if (CheckForInstall("VMwarePlayer_x64", false)) return true; + if (CheckForInstall("VMware Workstation", false)) { + return true; + } + if (CheckForInstall("VMware Player", false)) { + return true; + } + if (CheckForInstall("VMwarePlayer_x64", false)) { + return true; + } try //Try/catch block since the reg key might not exist, we might not have perms etc. {