I’m trying to find a (reliable) way to check the domino release version without the server running.
One way I found was through the setup= line in the notes.ini, but I found that this can be unreliable. Notably, if the server had been originally installed with 6.5.3 and was then (for whatever reason) loaded with a lower version such as 6.0.4; if the user doesn’t also delete the notes.ini (which is left in place in a vanilla uninstall) the setup= line would still show up as 650200 (which is correct for 6.5.3) instead of 600400 (which is correct for 6.0.4).
Can anyone help with a more reliable way to find the installed domino release without the server running?
Thanks,
crr
Subject: Check Domino release without server running?
You should still be able to get to the server via COM to get NotesVersion and/or NotesBuildVersion even if Domino is not running, assuming you can access the machine.
Subject: RE: Check Domino release without server running?
We have physical access to the machine. In fact, the software doing the checking will be running on the machine in question.
I’m trying to do this programmatically through an installer, since our software only supports certain versions of Domino and I’d like to abort with an error if the server in question is running a non-supported version of Domino.
Is there a somewhat less complex way to get at this info knowing that?
Thanks,
crr
Subject: RE: Check Domino release without server running?
You can try the registry on a Windows machine, but I don’t know that it would be any more reliable than the notes.ini since Notes and Domino can be an xcopy install – the service entries, etc., just point to EXEs and DLLs, not to specific versions of same.
Subject: Check Domino release without server running?
On a windows machine you could start the server client (without starting the server) and check the version (Help - About Notes)
Subject: RE: Check Domino release without server running?
There are several problems with this.
-
It assumes that there is a client installed on the server (which most of us do, I know)
-
It assumes that the client loaded on the server is the same release as the server itself
-
I need to do this programmatically from an installer
Thanks for the thoughts though.
crr
Subject: Solution found!
I found a snippet of Java code that performs this task admirably. And I only had to massage it a little to get it working in our test enviroment!
At any rate, thanks to all for the ideas and the help. I’ve included the code below for the curious.
crr
import lotus.domino.*;
class version extends NotesThread
{
public static void main(String argv)
{
version t = new version();
t.start();
}
public void runNotes()
{
try
{
Session s = NotesFactory.createSession();
String v = s.getNotesVersion();
System.out.println("Domino version = " + v);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}