summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorHeikki Halmet <heikki.halmet@qt.io>2018-03-21 08:42:21 +0200
committerTony Sarajärvi <tony.sarajarvi@qt.io>2018-03-22 06:05:45 +0000
commit8197e80155a9b4d8d0fe68411b44b69576b13ebd (patch)
tree497db69786fb5391ca54c6a88861c09cd0e02ae5 /coin
parent794913dde77e9a2918353894a33d03b16e6927c4 (diff)
Provisioning: Remove Java update from windows startup items
Change-Id: Iec709c9c42840910ab0dd98634c200d2aba8f7bf Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/provisioning/common/windows/install-jdk.ps13
1 files changed, 3 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/install-jdk.ps1 b/coin/provisioning/common/windows/install-jdk.ps1
index 73750489..0c548e63 100644
--- a/coin/provisioning/common/windows/install-jdk.ps1
+++ b/coin/provisioning/common/windows/install-jdk.ps1
@@ -71,6 +71,9 @@ Run-Executable "$javaPackage" "/s SPONSORS=0"
Write-Host "Cleaning $javaPackage.."
Remove-Item -Recurse -Force -Path "$javaPackage"
+Write-Host "Remove Java update from startup"
+reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f
+
Set-EnvironmentVariable "JAVA_HOME" "$installdir"
Add-Path "$installdir\bin"