Vbscript comparing registry key software versions - problem

Function GetNACKey()
Dim oReg, sPath, aKeys, sName, sKey, sVersion
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
sPath = "SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
oReg.EnumKey HKEY_LOCAL_MACHINE, sPath, aKeys
For Each sKey in aKeys
oReg.GetStringValue HKEY_LOCAL_MACHINE, sPath & "\" & sKey, "DisplayName", sName
oReg.GetStringValue HKEY_LOCAL_MACHINE, sPath & "\" & sKey, "DisplayVersion", sVersion
If Not IsNull(sName) Then
If (sName = "Cisco NAC Agent") Then
NACProductKey = sKey
NACProductName = sName
NACVersion = sVersion
End If
End If
Next
End Function
Dim objWSH
Set objWSH = CreateObject("WScript.Shell")
'NAC
NACProductKey = ""
NACProductName = ""
NACVersion = ""
Call GetNACKey()
If (NACProductKey <> "") Then
WScript.StdOut.Write("NAC: Found NAC...")
If (NACVersion <> "4.9.2.8") Then
WScript.StdOut.Write("Version not equal to 4.9.2.8...")
Call UninstallUNI(NACProductKey, NACProductName)
NACProductKey = ""
NACProductName = ""
NACVersion = ""
Call GetNACKey()
If (NACProductKey = "") Then
WScript.StdOut.Write("NAC: Inside IF installing...")
objWSH.Run "msiexec.exe /i " + Chr(34) + "\\mydomain\softdist\Software\CiscoISE\CiscoNAC\nacagentsetup-win-4.9.2.8.msi" + Chr(34) + " /quiet /norestart",1, True
End If
End If
Else
WScript.StdOut.Write("NAC: No NAC Found...Installing...")
objWSH.Run "msiexec.exe /i " + Chr(34) + "\\mydomain\softdist\Software\CiscoISE\CiscoNAC\nacagentsetup-win-4.9.2.8.msi" + Chr(34) + " /quiet /norestart",1, True
End If
Can anyone explain to me why this doesn't work in the IF NAC version <> version.  We used the exact same code with a different application and it works fine.  The only difference is the other application has two decimal spaces other than three
as in this one. Does vbscript not like to read three decimal places?

Thanks tried it but it didn't work.  I figured out the problem though.  The DisplayName key from the registry had a space at the end of it.  So instead of "Cisco NAC Agent" as the proper display name, it was "Cisco
NAC Agent ".  Go figure.  Thanks for your help everyone!  Happy New Year!
Thanks for the explanation however immpossible it is.  The script would have had a completely different output if that were the case.
Here is the line that you would have seen: "WScript.StdOut.Write("NAC: No NAC Found...Installing...")"
I suspect we will never know what the issue was.
¯\_(ツ)_/¯

Similar Messages

  • Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'

    Server and client are compiled under jsdk 1.3. After a crash on NT workstation installed jsdk 1.4 on it alone. (Did not recompile client to 1.4) All has been well for first few times I ran client on the machine with 1.4 installed. Then client refused to start with following message:
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.3' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    Ideas?

    I am guessing after installed jsdk1.4, you ran a few tests on the client before restarting the machine, so your java classes are still happy without knowing the registry key has changed. Then after restart, the registry has been picked up and there you go the complaint.
    I am also guessing JDK1.3 compiled classes should still works in JDK1.4 environment without recompiled, at least in most of the cases. The registry check is some kind of JVM protection agaisnt version misuse. ??
    But all are guessing.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • SQL Server Installation failing saying 'Could not write values to registry key \SOFTWARE. Verify you have sufficient access or contact support personnel'

    Hi,
    I am trying to install SQL server 2012/SQL Server 2014 and I constantly keep getting this error and the Management Tools fails to install.
     'Could not write values to registry key \SOFTWARE. Verify you have sufficient access or contact support personnel'
    Tried installing even SQL Server 2008 and still get the same error.
    Below is the log i get from C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140705_151943\sql_ssms_Cpu64_1.log
    MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegAddValue(Name=SQLPath,Value=C:\Program Files (x86)\Microsoft SQL Server\110\Tools,)
    MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE,,BinaryType=0,,)
    MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegAddValue(,,)
    MSI (s) (FC:D8) [15:22:55:746]: Note: 1: 1406 2:  3: SOFTWARE 4: 5 
    MSI (s) (FC:D8) [15:22:59:434]: Product: SQL Server 2012 Management Studio -- Error 1406. Could not write value  to key \SOFTWARE.  System error .  Verify that you have sufficient access to that key, or contact your support personnel.
    Error 1406. Could not write value  to key \SOFTWARE.  System error .  Verify that you have sufficient access to that key, or contact your support personnel.
    MSI (s) (FC:D8) [15:23:03:435]: User policy value 'DisableRollback' is 0
    MSI (s) (FC:D8) [15:23:03:435]: Machine policy value 'DisableRollback' is 0
    Action ended 15:23:03: InstallFinalize. Return value 3.
    Just not able to figure out what the problem is, can someone help?
    Thanks

    Hi,
    Thanks for providing log
    Following is in the log.
    01) 2014-07-09 11:08:53 Slp: Could not write value  to key \SOFTWARE.   Verify that you have sufficient access to that key, or contact your support personnel.
    (01) 2014-07-09 11:08:58 Slp: Watson bucket for generic failure has been created
    (01) 2014-07-09 11:08:58 Slp: Error: Action "Install_sql_ssms_Cpu64_Action" failed during execution.
    (01) 2014-07-09 11:08:58 Slp: Completed Action: Install_sql_ssms_Cpu64_Action, returned False
    (01) 2014-07-09 11:08:59 Slp: ----------------------------------------------------------------------
    (01) 2014-07-09 11:08:59 Slp: Running Action: Install_sql_tools_Cpu64_Action
    (01) 2014-07-09 11:08:59 Slp: Sco: File 'D:\Softwares\SQL2012\DeveloperEdition\x64\setup\x64\sql_tools.msi' does not exist
    (01) 2014-07-09 11:07:00 Slp: Sco: File 'D:\Softwares\SQL2012\DeveloperEdition\x64\setup\x64\sql_ssms.msi' does not exist
    (01) 2014-07-09 11:07:00 Slp: Checkpoint: PREINSTALL_SQL_SSMS_CPU64_ACTION
    (01) 2014-07-09 11:07:00 Slp: Sco: Waiting for service 'msiserver' to accept the stop request.
    (01) 2014-07-09 11:07:00 Slp: Sco: Attempting to open SC Manager
    (01) 2014-07-09 11:07:00 Slp: Sco: Attempting to open service handle for service msiserver
    (01) 2014-07-09 11:07:00 Slp: Invoking QueryServiceStatus Win32 API
    (01) 2014-07-09 11:07:00 Slp: Sco: Attempting to close service handle for service msiserver
    (01) 2014-07-09 11:07:00 Slp: Sco: Attempting to close SC Manager
    (01) 2014-07-09 11:07:00 Slp: Target package: "D:\Softwares\SQL2012\DeveloperEdition\x64\setup\sql_ssms.msi"
    (01) 2014-07-09 11:07:57 Slp: MSI Error: 1406 Could not write value  to key \SOFTWARE.   Verify that you have sufficient access to that key, or contact your support personnel.
    (01) 2014-07-09 11:08:38 Slp: InstallPackage: MsiInstallProduct returned the result code 1603.
    (01) 2014-07-09 11:08:38 Slp: Using MSI error code to detect the retry option: 1406
    (01) 2014-07-09 11:08:38 Slp: No retry-able MSI return code detected.
    (01) 2014-07-09 11:08:38 Slp: Watson Bucket 2
     Original Parameter Values
    From above it seems client tools component is missing from Installation or may be problem with Windows installer but I guess this is not issue with windows installer . Can you re download SQL Server package and run again.
    Edit: For further analysis can you also post log from below location on skydrive
    C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140709_104804\sql_ssms_Cpu64_1.log
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Error opening registry key 'Software\JavaSoft\Java Runtime Environment

    Hi All ..
    I've a siyuation where in whenever I am running java to run my class say test.class I am getting this error:
    D:\Mywork>java test2
    Error opening registry key 'Software\JavaSoft\Java Runtime Environment
    Error: could not find java.dll
    Error: could not find Java SE Runtime Environment.
    Any help?
    Also can we have 2 different jre running on same compute (like one in C and one in D drive)
    OS-Windows7 64bit
    JDK1.6_33
    thanks
    abhishek

    MackSix wrote:
    Do you have JAVA_HOME set and in your system variable Path?
    Examples:
    JAVA_HOME = C:\Program Files\Java\jdk1.6.0_33
    Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin\This may just work around the problem. However it seems the "default java" part of the JDK installation is broken on that machine given the missing registry key error. A reinstall of the software is probably a safer option.

  • When I start firefox it says : using registry key:Software\AppDataLow\b0ff89fb

    I run firefox and it says
    using registry key:Software\AppDataLow\b0ff89fb
    did this happened before?
    or could it be a virus?
    i downloaded some stuff lately
    before it never say something like this
    and of course is there a way I can fix this?
    thank you

    i found out how to fix it.
    it was a secret instalation of software with some other program so to not get this error go to start configuration blablabla and then to programs and components and search for something you didn,t install. srry don,t know how its called again.
    anyway succes if you still have the same problem.

  • Old software version problem because it isn't supported

    I have iPhone 3gs and i am facing many problems, even i can't install facebook or skype, can anyone help me to solve this problem

    Unfortunately you can't. If there is an older version that the developer allows then when you try to install the newer version it will give a prompt to say something like "This app requires iOS 7.0 or above. Would you like to download an older version of the app?" If that message does not come up then there isn't a way to get the older versions.

  • Why am I suddenly getting the following message when starting Firefox 7.0.1, "using registry key software appdatalow\". I am using Win7 Pro 64-bit.

    I had just installed a CAD package that required it to be run in compatibility mode (XP). I now get a window with the following message when starting Fierfox v7.0.1 according to the Help pull down menu and then About.

    http://www.symantec.com/security_response/writeup.jsp?docid=2010-011922-0125-99& tabid=2
    The story goes on. I am sharing this with other users for information only based on my experience with the product. I've owned a MAC since they were first introduced in 1984 and have used Norton for years. If the virus Bloodhound was real, and not just a false heuristic positive (which is totally possible) it came in on the heels of my downloading a free PDF OCR X (before reinstalling the updated version of Norton for 10.8.3) and using it to convert .jpgs > PDF OCR X text >MS Word > Adobe .pdf as that virus (Bloodhound.PDF.20 is known for exploiting weaknesses in Acrobat and Adobe .pdfs). I have never been happy having to use the MS Office suite of office products for MAC, but EXCEL on a PC is only compatibile with EXCEL on a MAC.
    When I got the Bloodhound warning after running a quick scan, I ran a full scan (1,050,660 files) with the same result. I looked at my terminal - nothing happening. I called Norton, who in turn convinced me to purchase an $89.98 subscription + $19.95/month for their spyware and virus removal service (the same sales pitch I've heard from other security providers who sell services through panic). The tech, who said it was probably false, played around with my computer via remote login, and then signed off, saying everything was okay. I reran a full scan and there was the virus again. Called tech support again. Finally got the virus quarantined and tossed it. The reality is that there was a 50/50 chance that it was something because of the way MS Word was behaving when I tried to save the file created from the ocr'd jpgs (error message: disk full- when I have 250GB of free disk space). I had to resave the files with a different name and place them in alternating folders. That havoc is now gone, but I will not be keeping the subscription. Just FYI.

  • JRE registry key problem

    I am using jdk1.3 for some times, works fine and everything. Not sure if this is the main problem after I installed oracle8 I cant use command "java" anymore in any dos prompt but "appletviewer" or "javac" still works, weird.
    When I try to use command "java" it says:
    1)registry key version is 1.1 but required 1.3,
    in javaSoft/1.3.1/JRE/bin/....
    2)cant find java.dll
    3)cant find java 2 R.E.
    So I uninstalled oracle, and looked at regedit and find that oracle had created a key under javaSoft/run time environment/1.1, I delete it due to frustration =). Now problem still exists, but only condition 2) and 3).
    Anyone had problem like this before? or Anyone know how to edit the registry key for this matter?
    Thanks in advance.

    Hi there, i have exactly the same problem. I have the JDK version1.4.0_01 (long name i know) and im using windows 2000. i installed the jdk in the path C:\j2sdk1.4\ and set the path like jGizmo has said (and also the installation help on the java site.... http://java.sun.com/j2se/1.3/install-windows.html), but still i cant seem to get the thing to work. whenever i try something it says
    Failed reading value of registry key:
    Software\JavaSoft\Java Runtime Environment\CurrentVersion
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    So I am at a loss. I hope this is enough info for any wise people out there.

  • Registry key problem

    Hi Guys,
    I tried to run my java application which has no warnings and errors when compiling. But I got the following errors:
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.3', but '1.4' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    Could anyone tell me what's wrong here ? What should I do then ?
    (I am using Win XP.)
    Thanks !

    Do you have 1.4 installed?
    Have you tried going in regedit and changing the value to 1.4?
    Does java.dll exist in your WINNT\System32 directory?
    Jay
    Hi Guys,
    I tried to run my java application which has no
    warnings and errors when compiling. But I got the
    following errors:
    Registry key 'Software\JavaSoft\Java Runtime
    Environment\CurrentVersion'
    has value '1.3', but '1.4' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    Could anyone tell me what's wrong here ? What should I
    do then ?
    (I am using Win XP.)
    Thanks !

  • Jdk version problem  on ibmjs

    I can run tts under jdk1.2.1 but cannot in jdk1.3, why?

    Oo, here is my problem.
    When i install jdk1.2.1, and the ibmjs & runtime, it works. I can run the HelloWorld program.
    But when i unintall the jdk1.2.1, then install with jdk1.3, errors as follows come out.
    Error 1:
    java.lang.NullPointerException
    at HelloWorld.main(HelloWorld.java:17)
    i'm using windows98.
    That is error 1.
    Another error is when i register and set path in the DOS
    Errror below comes out:
    HelloWorld.java:5: package javax.speech does not exist
    import javax.speech.*;
    ^
    HelloWorld.java:6: package javax.speech.synthesis does not exist
    import javax.speech.synthesis.*;
    ^
    HelloWorld.java:13: cannot resolve symbol
    symbol : class Synthesizer
    location: class HelloWorld
    Synthesizer synth = Central.createSynthesizer(
    ^
    HelloWorld.java:14: cannot resolve symbol
    symbol : class SynthesizerModeDesc
    location: class HelloWorld
    new SynthesizerModeDesc(Locale.ENGLISH));
    ^
    HelloWorld.java:13: cannot resolve symbol
    symbol : variable Central
    location: class HelloWorld
    Synthesizer synth = Central.createSynthesizer(
    ^
    HelloWorld.java:25: cannot resolve symbol
    symbol : variable Synthesizer
    location: class HelloWorld
    synth.waitEngineState(Synthesizer.QUEUE_EMPTY);
    ^
    6 errors
    If i have install newer version of jdk, but i want to reinstall with old version, what should i do.
    This is the error found:
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.2', but '1.3' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    Thanks a lot.

  • Cannot open registry key and /usr/bin/lib: invalid option --N patch 7237313

    Hi,
    I am trying to install autoconfig TXK patch 7237313 for cloning an EBS 12 on windows server 2003.
    When I run adpatch it returns 2 errors:
    *1 -*
    setEnvAdrelink: Error: Cannot open registry key:
    SOFTWARE\ORACLE
    *2 -*
    Relinking module 'CONCSUB.exe' in product fnd ...
    gnumake -f E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk E:/o
    racle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe
    Starting link of fnd executable 'CONCSUB.exe' on Fri Feb 5 09:25:07 SAST 2010
    /usr/bin/lib: invalid option -- N
    Try `/usr/bin/lib --help' for more information.
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:2901: warning:
    overriding commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/
    CMDCART.dll'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:752: warning: i
    gnoring old commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin
    /CMDCART.dll'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:2948: warning:
    overriding commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/
    FNDRTR45.exe'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:1333: warning:
    ignoring old commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bi
    n/FNDRTR45.exe'
    link.exe -MAP:E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.map -NODEF
    AULTLIB -NOLOGO -SUBSYSTEM:CONSOLE -ENTRY:mainCRTStartup -OUT:E:/oracle/PROD/app
    s/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe E:/oracle/PROD/apps/apps_st/appl/fnd/1
    2.0.0/lib/fdpocr.obj \
    E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/lib/FNDCORE.lib E:/oracle/PR
    OD/apps/tech_st/10.1.2/precomp/lib/msvc/orasql10.lib E:/oracle/PROD/apps/tech_st
    /10.1.2/precomp/lib/msvc/orasqx10.lib E:/oracle/PROD/apps/tech_st/10.1.2/RDBMS/l
    ib/oraclient10.lib E:/oracle/PROD/apps/tech_st/10.1.2/RDBMS/lib/oracommon10.lib
    E:/oracle/PROD/apps/tech_st/10.1.2/NETWORK/lib/oranro10.lib E:/oracle/PROD/apps/
    tech_st/10.1.2/NETWORK/lib/oran10.lib E:/oracle/PROD/apps/tech_st/10.1.2/NETWORK
    /lib/oranl10.lib E:/oracle/PROD/apps/tech_st/10.1.2/lib/oranls10.lib E:/oracle/P
    ROD/apps/tech_st/10.1.2/lib/oracore10.lib /LIB/MSVCRT.LIB /LIB/OLDNAMES.LIB /P
    latformSDK/LIB/KERNEL32.LIB /PlatformSDK/LIB/USER32.LIB /PlatformSDK/LIB/ADVAPI3
    2.LIB /PlatformSDK/LIB/WINSPOOL.LIB /PlatformSDK/LIB/COMDLG32.LIB /PlatformSDK/L
    IB/GDI32.LIB /PlatformSDK/LIB/VERSION.LIB
    link: invalid option -- M
    Try `link --help' for more information.
    gnumake: *** [E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe] Error
    1
    Done with link of fnd executable 'CONCSUB.exe' on Fri Feb 5 09:25:08 SAST 2010
    Relink of module "CONCSUB.exe" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    egrep version is 2.5.1 and gnumake is 3.80.
    please help,
    regards,
    Hassane Cabir

    Hi,
    Are the application services down?
    setEnvAdrelink: Error: Cannot open registry key:
    SOFTWARE\ORACLEyes, the services are down, using adstpall.cmd and Maintenance mode enabled using adadmin.
    Get the version 3.80-1 of the make file -- See (Note: 414992.1 - Using Cygwin to Maintain Oracle E-Business Suite Release 12 on Windows).The make is already 3.80-1.
    regards,
    Hassane Cabir

  • Registry key  has different values

    Hi there!
    I'm getting this error when i run a java program:
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.2' is required.
    When i use the 'regedit' command, i see several versions of the java run time listed:
    1.1.6
    1.2
    1.4
    1.4.1
    1.4.1_01
    Can i edit a file and change the 1.2 to 1.4 ?
    Thanks alot!
    Here is what is in my path listing: ...........;C:\j2sdk1.4.1_01\bin
    PATH=C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C:\PROGRA~1\RATIONAL\RATION~1\NU
    TCROOT\bin\x11;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt;C:\oracle\ora81\bin;
    C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\
    1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Mic
    rosoft SQL Server\80\Tools\Binn\;C:\Program Files\Rational\common;C:\Program Fil
    es\Rational\ClearQuest;C:\Program Files\Rational\Rose\TopLink\;C:\Program Files\
    Rational\Rational Test;C:\Program Files\Microsoft Visual Studio\Common\Tools\Win
    NT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\
    Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC
    98\bin;C:\j2sdk1.4.1_01\bin

    Most likely, you have a 1.2 java.exe file somewhere in your path that your system finds first. The easy thing to try is modify your path statemente so C:\j2sdk1.4.1_01\bin comes first in the list.

  • Registry key CurrentVersion incorrect and cannot find java.dll

    I have been reading the posts in this forum related to similar errors but not quite sure that they address this situation. Here is what I am seeing:
    I have j2sdk 1.4.2_05 on WindowsXP and the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion has the value 1.4.2_05. The j2sdk install copied the java.exe to C:\j2sdk1.4.2_05\bin, C:\j2sdk1.4.2_05\jre\bin and C:\Program Files\Java\j2re1.4.2_05\bin folders. It also copied the same file to the windows\system32 folder. So far so good.
    In my windows PATH env. variable, the windows\system32 path comes first . So when on the DOS prompt, I type "java -version" or even "C:\windows\system32\java -version", I get the following error :
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4.2_05', but '1.4' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    However, running
    C:\j2sdk1.4.2_05\bin\java -version OR
    C:\j2sdk1.4.2_05\jre\bin\java -version OR
    "C:\Program Files\Java\j2re1.4.2_05\bin\java" -version
    works and I get the version info for 1.4.2 j2sdk.
    Now I know that prefixing j2sdk bin path to the PATH variable, so that it comes before windows\system32 will set it right. But I think I should not have to do that , if the j2sdk installation has already copied the latest java.exe to the windows\system32 folder. If it was just an issue of java.exe in windows\system32 being in sync with the JRE current version in registry, I think even just "java -version" should have worked. Since that is not working, maybe there is something beyond that. At this time, I do not know what that could be.
    Any suggestions?

    The java.exe file in system32 that's being executed isn't version 1.4.2_05. Either you have multiple copies of java installed, or the install got screwed up.
    Check version and (maybe) just copy the correct file into system32?

  • Missing SSO registry keys

    It seems as though when try to configure Netegrity with Plumtree 5.0.2, we're missing the UID and PWD registry keys under SOFTWARE\Plumtree\3.0\Single Sign-on\Password Settings. Does anyone know what these values are supposed to be set to? Or better yet, where is this documented?
    Here is the error we're seeing:
    2 10-06 19:43:04 Warn Auth Source Providers 3860 3808 SSOAuthTokenGenerator.cpp(109) *** COM exception caught *** Error info: The parameter is incorrect. (0x80070057): [Single Sign-on Authentication Provider: Could not read string value UID from registry key SOFTWARE\Plumtree\3.0\Single Sign-on\Password Settings: error 0x2] (109,SSOAuthTokenGenerator.cpp)
    Thanks!
    Chris Bucchere | bdg | [email protected]| www.bdg-online.com

    The registry is a complicated place and should be approached with the greatest caution. I've looked into it, and HKEY_LOCAL_MACHINE32 is a frequently used alias. On a 32-bit machine it is HKEY_LOCAL_MACHINE. On a 64 bit machine it is translated
    HKEY_LOCAL_MACHINE32\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    becomes
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
    Anyway, I suspect the installer isn't getting run with the necessary permissions. Maybe a right click-run as administrator on the installer will do it.
    If you didn't download the installer from adobe.com, don't touch it, and download from Adobe instead. There are scams out there.

  • Error.....Registry Key :

    I have installed J2EE 1.4 SDK
    and Sony java SDK
    when i open
    Go to Start Menu\Programs\Sony Ericsson\J2ME SDK\DeviceExplorer
    it cann't open n error : "Registry Key:\software\javasoft\javaenvironment\currentversion\
    how can i solved this prob.
    thanks...

    have uninstalled Sony java SDK
    and i installed again but when i open Sony Ericsson\J2ME SDK\DeviceExplorer
    it still error : "Registry Key:\software\javasoft\javaenvironment\currentversion\
    how can i do? to solve this error..?
    thx.

Maybe you are looking for