Friday, September 25, 2009

Please help Marek to solve his “dual Notes” problem

I’ve blogged several times about how to install multiple versions of Lotus Notes and Domino (releases 4, 5, 6, 7, and 8) on a single system.

The most recent article was Coexistence of Notes 7 and Notes 8 on the same system. The following comes as a consequence of one reader contacting me to see if I could provide assistance with a problem that he has encountered.

Below is Marek’s outline of his problem, which I’ve taken the liberty to paraphrase slightly since he’s based in Europe and English is not his first language:

We are using in our company dual Notes, but not 2 installations of different notes but it is created with a VBS script a particular copy of the original installation. So we are running on 2 notes clients which are connected to 2 different servers with different databases.

I am working now on a VBS script, and am having problems with connecting to the right Notes session.

If I use Set Session = CreateObject("Notes.NotesSession")
it connects to the session of the first-started Notes client.

The problem is if somebody starts the wrong Notes client as the first the script just breaks down with an error message like “database not found”.

I was already thinking about how to identify the [appropriate] session and then switch it. Am able to identify the session (every session has his own INI where is stated the server and other login details) but I’m unable to switch the sessions.

The second idea was to register the nlsxbe.dll but both Notes clients are using the same nlsxbe.dll so this does not help.

I would really appreciate if somebody could help or come up with some good ideas and help move me forward.

Now, if you read my blog posts, it’s apparent that Marek is attempting something completely different from simply installing multiple Notes clients on a single system. His problem is a design/coding issue, not an installation/configuration issue as such (although I suppose that some configuration option or other just might have some effect on what’s he’s trying to accomplish).

Marek’s working in an area of Notes programming to which I’ve been little exposed, therefore I’m going to “pass the buck” over to the wider Notes development community. Do any of you have experience in this area (interfacing with VBS scripts) and are you able to give Marek any tips that will help him to achieve his objectives?

If you can help in any way, please reply to this post and/or contact me (for example via the home page of Asia/Pacific Computer Services, or so that I can pass on to you Marek’s contact details, which I’m loath to include here in case the spammers get his e-mail address. We’re looking forward to hearing from you!

1 comment:

  1. I don't know if this will help or not. The Nomad install will yield a Notes install that is free of any registry hooks -- as far as I know. You can do a nomad install to a folder on your hard drive vs. on a USB stick (or at least do the USB install and copy to the hard drive and make a few ini changes regarding the paths).

    In that situation, his script could probably reference the executables in the Nomad folder. Just a thought.