From 96ce19d781a953664b91558616c275a8cdc1946b Mon Sep 17 00:00:00 2001 From: Jake West Date: Tue, 17 Sep 2024 13:59:46 +0100 Subject: [PATCH] Updated logging and correcting setting cma --- scripts/blaise/check_cma_packages.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/blaise/check_cma_packages.ps1 b/scripts/blaise/check_cma_packages.ps1 index 3699e2e1..00faa40e 100644 --- a/scripts/blaise/check_cma_packages.ps1 +++ b/scripts/blaise/check_cma_packages.ps1 @@ -14,10 +14,11 @@ else { $CMAInstalledPackage = $Blaise.CMAInstalledPackage LogInfo("CMA $CMAInstalledPackage installed") if ($Blaise.CMAInstalledPackage -eq $env:ENV_CMA_MULTI_PACKAGE) { - "CMA mutli package version already installed" + LogInfo("CMA mutli package version already installed") } else { LogInfo("CMA mutli package version needs to be changed") . "$CurrentPath\scripts\blaise\install_cma_packages.ps1" + Set-ItemProperty -Path "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" -Name "CMAInstalledPackage" -Value $env:ENV_CMA_MULTI_PACKAGE | Where-Object { $_.DisplayName -match 'blaise' } } } \ No newline at end of file