JRE Uninstall string for v7 all the same - but do not work

We have multiple Windows 7 machines running v7u1 thru v7u10.
I found the uninstall string and was able to run MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217010FF} on my own machine to remove the software successfully.
In looking at u6,u7,u9 and u11 installations, I noticed the Uninstall Strings are exactly the same. But when ran on those machines, the system states "This action is only valid for products that are currently installed".
However, I can remove the version from the Control Panel.
So what are the correct uninstall strings for v7u1 thru v7u11?

All of our users are local admins and tend to install whatever. This leads to a messy environment and we don't always know which version of Java is installed. So, to address that, I created a small script that scours 'HKLM\software\microsoft\windows\currentversion\uninstall' for Java entries, reads the uninstall string then runs the reported uninstall string. The assumption here is that the uninstall string will be an MSI command. (All the machines & versions of Java used the same format.)
This is a Windows 7 Enterprise (32-bit) environment, but the script also works on 64-bit installations of Windows 7 Enterprise.
I've tested this with 7u11 and went as far back as 6u21. It should work with just about any version that uses MSI for uninstalling.
@echo off
setlocal enabledelayedexpansion
echo. & echo Checking for Obsolete Versions of Java...
for /f "usebackq tokens=*" %%a in (`reg query HKLM\software\microsoft\windows\currentversion\uninstall`) do (
     rem echo a is %%a
     for /f "usebackq tokens=2*" %%b in (`reg query "%%a" /v DisplayName 2^>nul ^| find /i "java"`) do (
          rem echo b is %%b
          rem echo c is %%c
          for /f "usebackq tokens=3,4" %%d in (`reg query "%%a" /v UninstallString 2^>nul`) do (
               echo.     Removing %%c
               rem echo d is %%d
               rem echo e is %%e
               set uninstallcmd=%%e
               set uninstallcmd=!uninstallcmd:^/I=^/X!
               rem %%d %%e /qb-
               %%d !uninstallcmd! /qb-
:end
endlocal
Standard Dislaimer:*
Neither I nor the respective owners and/or maintainers of Oracle make representations about the suitability of this software for any purpose. This material is provided "as is", with absolutely no warranty of the attached items whatsoever, whether express, implied, or statutory, including, but not limited to, any warranty of merchantability or fitness for a particular purpose or any warranty that the contents of the item will be error-free. Any use is at your own risk. Blah blah blah.

Similar Messages

  • HT3226 Having problems with my mouse. Cannot scroll up or down or sideways. Did all the cleaning but still not working. Any help on this??

    Having problems with my mouse. Cannot scroll up or down or sideways. Did all the cleaning but still not working. Any help on this??

    Hello:
    Try resetting the PRAM and SMC.
    Barry

  • I am trying to shift my backup folder for many weeks to another location/drive on my pc hard drive(windows xp). have tried to use the recommended JUNCTION for the same but do not have a complete step by step instruction to do that. can anybody help me

    i am trying to shift my backup folder for many weeks to another location/drive on my pc hard drive(windows xp). have tried to use the recommended JUNCTION for the same but do not have a complete step by step instruction to do that. can anybody help me

    You can redirect <Profile>\<AppData>\Apple Computer\MobileSync\Backup to a folder on another drive using NTFSLink (shell ext., might only work on XP) or Junction (cmd line tool).
    In essence you move the existing folder to a new location, create an empty folder where the old one used to be, then get the operating system/tool to link the two togther and silently redirect any file operation on the old location through to the new one.
    tt2

  • For some reason the masking layer is not working in my CS6. I know I have all the settings correct!

    For some reason the masking layer is not working in my CS6. I know have everything set correctly! Please help.

    Hard to guess on this type of question at you are not offering any tip on what you are doing.  A screen shot might help to see how you have things set.

  • In outlook 2013 Add-In, Adding dynamic menu to splitButton idMso="DialMenu" is working and the same code is not working in outlook 2010 Add-In.

    In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
    2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
    <contextMenu idMso="ContextMenuFlaggedContactItem">
     <splitButton idMso="DialMenu">
              <menu>
                <dynamicMenu id="CallContactwithFreedomvoice
    " label="CallContactwithFreedomvoice" 
                            getContent="OnGetContenttest"                           insertAfterMso="Call"/> 
            </menu>       </splitButton>    </contextMenu> 

    Hi Narasimha prasad2,
    Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
    I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    I had the same problem. It fixed itself when I opened Internet Explorer (I don't normally use it). I was opening Support Portal to get some support help, but I'm not sure if it was the page or simply opening IE that did the trick.

  • I'm trying to create a new ichat Acc because for some reason the old one is not working, so I go to Create an Apple ID and start creating a new apple ID, when I submit the Acc it tells me that my Email address is already verified for another Apple ID and

    I'm trying to create a new ichat Acc because for some reason the old one is not working, so I go to Create an Apple ID and start creating a new apple ID, when I submit the Acc it tells me that my Email address is already verified for another Apple ID and thats the only email address I have... What can I do?

    There is no way to consolidate iTunes accounts.
    Setting up an iPhone has never required creation of a new Apple ID.
    You've apparently purchased content with both Apple ID's.  Sign into the device with the correct Apple ID and sync the content.

  • I have iphone 4s and i updated it for iso 6 , the icon passbook its not working what shall i do

    I have iphone 4s and i updated it for iso 6 , the icon passbook its not working what shall i do, please note that i live in united arab emirates

    Hae you tried to do a hard reset of your phone? This will not lose any data. Hold the sleep/wake button and the home button until the phone turns off ignoring any slide to power off messages. Then power the phone back on.

  • When you install Premiere Pro as the admin on an iMac the audio functionalities work well but a second admin account on the same machine does not work. What can I do to fix this?

    When you install Premiere Pro as the admin on an iMac the audio functionalities work well but a second admin account on the same machine does not work. What can I do to fix this?

    It is a bad idea to hack computer passwords when you don't own the computer
    Good luck with the school and the parents.

  • My passcode is working to unlock the screen but does not work with restriction passcode. Should they be different?

    My passcode is working to unlock the screen but does not work with restriction passcode.
    Tried it several times but it did not work, though i can use the phone and all features even after 13 failed attempts.
    Should restriction passcode be different from what i set?

    There is no default restriction password. If you didn't set it someone else may have. If you can't find it then you may have to follow the steps here:
    Forgot passcode for your iPhone, iPad, or iPod touch, or ...
    Do you have a backup which might not have this restriction passcode? If so restore to that backup?

  • HT204407 Find my friends Icon disappeared after upgrade to ios 8. I tried restarting as well as reinstalled the app but its not working. I can find it in Usage, but not in spot light. Pla help!!j

    Find my friends Icon disappeared after upgrade to ios 8. I tried restarting as well as reinstalled the app but its not working. I can find it in Usage, but not in spot light. Pla help!!

    I have exactly the same problem on a 4S on iOS 8. Have tried uninstalling, deleting FMF from backup, resetting phone and restoring from backup, but the problem remains. Sometimes the icon appears on a backup Home screen in iTunes, but it never appears on the phone itself. The app is accessible by going to the store, purchases and opening it from there. The app appears to have been running the whole time, but becomes invisible anytime I return to the home screen.

  • Conectivity to videobeam, i already have the accesory but do not works,any configuration or osftware?

    Conectivity to videobeam, i already have the accesory but do not works,any configuration or osftware?

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Note: Apple has removed over 90 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • I sign in tol my Firefox is out of date. did try to do the upgrade but did not work need help

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/978554 /questions/978554]''
    I need help to get my sign in working. Need to upgrade?
    how to do that?
    <sub>edit: removed personal information for your protection. (philipp)</sub>

    I sign in told my Firefox is out of date. did try to do the upgrade but did not work. Need help
    Let me know how to get my sign in working

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • TS2755 I living in Israel using Hot Mobile an 3.9G network, transferred my old number from another carrier and for some reason the imessage / face-time not working anymore even restore not helped, it stuck on "waiting for activation" please help

    when i try to active the imessage or facetime it typing "Waiting for activation" and stuck like this.
    when i go to setting > phone > i see the correct number.
    i think i read the whole google already trying resolving this issue tried everything, even restored my phone and actived the new sim using itunes.
    but still not working same error.
    the NEW sim of HOT MOBILE gave me a temporary number which worked fine its was 053-xxxxxx
    after somthing the transfer like 24 later hours they transfered my old number from another carrier witch is 054-xxxxxx
    and now not working.
    called my carrier and they has no idea how to fix that.
    they told me contact apple.
    P L E A S E    H E L P. . .

    Hi guys,
    I keep getting "waiting for activation" on my iMessage. I can only send/receive iMessage from my email address, NOT my phone number.
    I have done all kind of fixing suggestions that I can find online, but nothing works so far.
    - Date & time set as automatic (I don't know why this matter, but mine was already set as automatic from the begining)
    - Reset network setting
    - Changing the DNS to 8.8.8.8.
    - Restore to factory setting (from back up & as new iPhone)
    - Turning on/off iMessage & facetime
    - Sign out/in of apple ID
    - Change location from apple ID
    - Hard reset/reboot
    And many others.
    ...me too. I'm in Portugal having the same issue!! Hopefuly Apple will give us a solution, shortly...

Maybe you are looking for