Jinitiator

(imported topic written by jr6591)

Has anyone had any experience with Jinitiator. We have multiple versions and installed in usually 1 or 2 locations. What would be the best way to identify where and what versions are installed.

right now I have a task that has multiple possibilities

ie:

exists folder “C:\Program Files\Oracle\JInitiator 1.3.1.8\bin” or exists folder “C:\Apps\Oracle\JInitiator 1.3.1.8\bin”

So, I do this for about 6 versions.

Any better way?

(imported comment written by jr6591)

Another method I have found is via the registry.

exists key “HKEY_Local_Machine\Software\Oracle\Jinitiator” of registry

how can I determine what versions are installed using the registry. I have multiple versions, so this would be normal for me.

http://HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JInitiator\1.3.1.28

“JavaHome”=“C:\Apps\Oracle\JInitiator 1.3.1.28”

http://HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JInitiator\1.3.1.18

“JavaHome”=“C:\Apps\Oracle\JInitiator 1.3.1.18”

http://HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JInitiator\1.3.1.17

“JavaHome”=“C:\Apps\Oracle\JInitiator 1.3.1.17”

(imported comment written by jessewk)

Does this work for you?

names whose (exists it as version) of keys of key “HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JInitiator” of registry

(imported comment written by jr6591)

I actually just found this.

if (exists keys of keys “HKEY_Local_Machine\Software\Oracle\Jinitiator” of registry) then (concatenation " & " of names of keys of keys “HKEY_Local_Machine\Software\Oracle\Jinitiator” of registry) else (“Not Installed”)

now I am trying to do the same for a file within a folder.

Thanks. Much appreciated.

(imported comment written by jr6591)

So, how can I extract this then. The only way I can find is to specify the version (such as I have with 1.3.1.28)

value “JavaHome” of key “HKEY_Local_Machine\Software\Oracle\Jinitiator\1.3.1.28” of registry

If that version is not installed, my Analysis gives me an error. If it is installed, then the correct information is returned.

(imported comment written by jessewk)

Hi jr,

I’m not sure what you mean in comment #4.

Is this what you’re looking for in comment #5?

(
name of it & ", " & value “JavaHome” of it as string
)
of keys
whose
(
exists name of it as version
and
exists value “JavaHome” of it
)
of key “HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JInitiator” of registry

Result

1.3.1.17, C:\Apps\Oracle\JInitiator 1.3.1.17
1.3.1.18, C:\Apps\Oracle\JInitiator 1.3.1.18
1.3.1.28, C:\Apps\Oracle\JInitiator 1.3.1.28

(imported comment written by jr6591)

Specifically I was looking if only these 2 existsed.

1.3.1.18, C:\Apps\Oracle\JInitiator 1.3.1.18

1.3.1.28, C:\Apps\Oracle\JInitiator 1.3.1.28

But this should be more than helpful.

Thanks