IE7 and COM install

Add-in Express™ Support Service
That's what is more important than anything else

IE7 and COM install
Final version of IE7 breaks addin install 
Allen Drennan




Posts: 3
Joined: 2005-04-23
Everything was fine up through all the betas and RCs but suddenly, after installing the final version of IE7, I can no longer install my office Add-ins.

My install code

function RegisterOfficeAddin:Boolean;
var
lHandle:THandle;
// ipp procedures
lDllRegisterServer:function:HResult; stdcall;
lError:HResult;

function GetAddInPath:String;
var
lReg:TRegistry;
lKey:String;
begin
result := '';
lReg:=TRegistry.create;
try
lReg.RootKey := HKEY_CURRENT_USER;
lKey := '\SOFTWARE\'+COMPANY_NAME+'\' + PRODUCT_NAME_SHORT + '\WebConferencingAddIn';
if lReg.OpenKey(lKey, False) then
result := lReg.ReadString('Path') + '\';
finally
lReg.Free;
end;
end;

begin
result := True;
lHandle:=LoadLibrary(PAnsiChar(GetAddInPath + WEBCONFERENCINGADDIN_DLL));
if lHandle<>0 then
begin
try
@lDllRegisterServer:=GetProcAddress(lHandle,'DllRegisterServer');
if @lDllRegisterServer <> nil then
begin
lError := lDllRegisterServer;
codesite.send('lError',lError);
result := (lError = S_OK);
end;
finally
FreeLibrary(lHandle);
end;
end;
end;

Where WEBCONFERENCINGADDIN_DLL is my DLL.

Like I said this all worked up until the release version of IE7.

Sorry if this is already covered somewhere else. I did try finding somehing but must have missed it.

A
Posted 31 Oct, 2006 10:07:44 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Allen,

We have never had any problems or bug reports related to IE7. Nevertheless, I will try to test the issue. Can you please give more details:
- Is the install code executed in a standalone application?
- What Delphi version do you use?
- What host applications does your add-in support?

Posted 31 Oct, 2006 11:20:52 Top
Allen Drennan




Posts: 4
Joined: 2006-10-31
Hi Dmitry

>>- Is the install code executed in a standalone application?
It's intalled from a tray application that does many configuration tasks. Amoung these tasks is allowing the user to select which installed office apps to install the add-ins into.

- What Delphi version do you use?
Delph BDS 2006 w/Update 2. We are also using the latest Add-in express VC>

- What host applications does your add-in support?
Outlook, word, excell, PP.
Posted 31 Oct, 2006 12:48:47 Top
Allen Drennan




Posts: 4
Joined: 2006-10-31
Sorry, false alarm. Turns out that some custom COM initialization code stepped on registration. This code worked fine prior to IE7. Anyway, it was in our code not yours.
Posted 31 Oct, 2006 15:06:48 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Allen,

Ok, thanks for the notification.

Posted 01 Nov, 2006 04:58:18 Top