Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Need to remove all jre versions from the domain pc's and install the latest 7 jre

$
0
0
    Hi,

    I use the following code in a dos batch file to remove all installed jre version and then install the latest 7 jre :

    START /WAIT /MIN WMIC product where "Name LIKE '%%J2SE Runtime%%'" call uninstall /nointeractive
    START /WAIT /MIN WMIC product where "Name LIKE '%%Java%%'" call uninstall /nointeractive

    jre-7u40-windows-i586.exe /s

    This works perfectly.

    I also converted it to an .exe with iexpress, this also runs fine.

    Because I want to deploy this with a gpo to all domain computers, I tried to convert it to an msi with Advanced installer 10.5.1, exe to msi converter free and Smart Packager.  But when I run the converted msi the msi reports no errors, but when I check the computer afterwards, the old jre's have not be removed.

    Can somebody pls help me with this problem ?

    Thanks a lot !

Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>