![]() ![]() 'Essentially this transparent redirection would hide 64bit Java runtimes from a script running in 32bit mode on a 64bit OS. ![]() 'Wow6432Node branch for every registry call to HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall. Without this the actual registry paths will be transparently redirected to the 'The following SWbem setup allows a script running in a x86 context, such as under the SCCM client, on a 圆4 system Set objWSHShell = CreateObject("WScript.Shell") '-Functions-įunction RemoveJava(strRegistryPath, aryVersions, strLogFilePath, objProcessor)ĭim objWSHShell, objRegistry, objWbemContext, objSWbemLocator, objSWbemServicesĭim strUninstallKey, strDisplayName, strUninstallString, strVersion RemoveJava "Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\", aryVersionsx86On圆4, strLogFilePath, objProcessor If (objProcessor.AddressWidth = "64") Then ![]() 'This call will remove x86 versions on a 圆4 system. RemoveJava "Software\Microsoft\Windows\CurrentVersion\Uninstall\", aryVersions, strLogFilePath, objProcessor 'This call will remove 圆4 versions on a 圆4 system and x86 versions on a x86 system. WScript.Echo vbCrLf
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |