No announcement yet.

Delete java registery key

  • Filter
  • Time
  • Show
Clear All
new posts

  • Delete java registery key

    DOS Command

    REM Remove Java Reg Keys
    reg delete "HKLM\SOFTWARE\JavaSoft" /va /f
    reg delete "HKLM\SOFTWARE\JreMetrics" /va /f
    reg delete "HKLM\SOFTWARE\Wow6432Node\JavaSoft" /va /f
    reg delete "HKLM\SOFTWARE\Wow6432Node\JreMetrics" /va /f
    REM Remove Java Quick Starter
    "C:\Program Files (x86)\Java\jre6\bin\jqs.exe" -disable
    "C:\Program Files (x86)\Java\jre7\bin\jqs.exe" -disable
    "C:\Program Files\Java\jre6\bin\jqs.exe" -disable
    "C:\Program Files\Java\jre7\bin\jqs.exe" -disable
    "C:\Program Files (x86)\Java\jre6\bin\jqs.exe" -unregister
    "C:\Program Files (x86)\Java\jre7\bin\jqs.exe" -unregister
    "C:\Program Files\Java\jre6\bin\jqs.exe" -unregister
    "C:\Program Files\Java\jre7\bin\jqs.exe" -unregister
    msiexec.exe /x {4A03706F-666A-4037-7777-5F2748764D10} /qn /norestart
    RMDIR /s /q "C:\Program Files\Java\jre6"
    RMDIR /s /q "C:\Program Files (x86)\Java\jre6"

    /va parameter: Deletes all entries under the specified subkey. Subkeys under the specified subkey are not deleted.
    /f parameter: Deletes the existing registry subkey or entry without asking for confirmation.

    Autoplay Media Studio Command

    Registry.DeleteKey(HKEY_LOCAL_MACHINE, "Software\\JavaSoft")

    File.Delete(_ProgramFilesFolder.."\\Java\\jre6\\bi n\\jqs.exe" -disable);

    Is it true the above command?
    How to use -disable and unregister parameters?
    How to use /s and /q parameters at the RMDIR command?

  • #2
    Do not help someone who will


    • #3
      File.Delete(_ProgramFilesFolder.."\\Java\\jre6\\bi n\\jqs.exe" -disable);
      File.Delete obviously deletes a file and the only argument it takes is a string that represents the file path, _ProgramFilesFolder is a string variable that is joined on to the next string with the concat operator .. but you then try to add on a non string without even trying to join it so "\\Java\\jre6\\bi n\\jqs.exe" -disable is not going to work because its not joined and even if it were -disable would need to be defined as a string beforehand but in any event attempting to pass a 'disable' argument when deleting a file would be pointless.

      Here is the Lua reference manual to read up on strings and the general usage of Lua.