Delphi7 automation server problem on Vista - any workarounds? [Edit]

Giganews Newsgroups
Subject:Delphi7 automation server problem on Vista - any workarounds? [Edit]
Posted by: Steven Smith
Date:Wed, 24 Feb 2010

Dear group,

I have the following problem:

I'm using Delphi7. My main program includes an automation server used by my other programs.

Unfortunately, Delphi7 registers the automation server on each program start, thus the program has to be run with administrator rights on Vista.

The problem is:
I need to call the automation server from my other program, a program which can't be run as an administrator. (it's an Outlook add-in, actually)

So when I run:

    MyApp:=CreateOleObject('My.App');

an EOleException comes up telling me that my program should have higher privileges to perform the requested operation.

Please tell me that there is a workaround for this Delphi7 issue (to prevent the automation server from registering itself, thus requiring admin privileges), because changing to a higher version of Delphi and migrating tens of thousands of line of code (not to mention the third party components) would be the worst thing I can imagine.

Thank you!

Replies