Installation woes

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

Installation woes
 
Philip Street




Posts: 53
Joined: 2005-01-25
I'm sooooo close, I can smell th coffee....BUT I'm still having problems.

I have done the following.

1) Downloaded the Office 2003 PIAs redistributable from the Microsoft web site and included it in my install command file, just so I'm sure they are there.

2) I copy all necessary assemblies into my application folder, including the DLLs mentioned above (Extensibility.dll, Office.dll, stdole.dll, addinExpress.MSO.dll).

3) I register the DLLs (Extensibility.dll, Office.dll, stdole.dll, addinExpress.MSO.dll) in the GAC using the GACUTIL.EXE. This works fine.

4) I register the Shim DLL with REGSVR32.EXE. This works fine.

5) When I "install" the add-in using INSTALLUTIL.EXE, as described above, I get the following error;

"Exception has been thrown by the target of an invocation. The error code is 4. Click 'Yes' to continue."

The title of the error message dialog is "mscorlib".

Any ideas what is going wrong/missing?

Cheers,

Phil
Posted 26 Aug, 2005 08:38:07 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
Hi Phil,

I also installed the Office PIAS into the GAC.

Try to run installutil this way

installutil.exe /Addin="FULL_PATH_TO_ADDIN_ASSEMBLY" "FULL_PATH_TO_ADX_ASSEMBLY"

You should see some Output on your Screen, perhaps where the Error occured.
There is also a log file you can take a look at.
Best regards,

Sven Heitmann
Posted 29 Aug, 2005 03:34:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Philip.

I register the DLLs (Extensibility.dll, Office.dll, stdole.dll,
addinExpress.MSO.dll) in the GAC using the GACUTIL.EXE

You don't have to register addinExpress.MSO.dll in the GAC. ADX does it itself when you perform the "Install" action.
Also ADX does the following steps during the installation process:
1. Registers itself as a COM library.
2. Checks if ADX is already installed. If so then does nothing.
3. Checks if there are any ADX based add-ins on the PC. If they are, then ADX will not be unregistered during the uninstallation process of an add-in.

When I "install" the add-in using INSTALLUTIL.EXE, as described
above, I get the following error: "Exception has been thrown by the target of an invocation. The error code is 4. Click 'Yes' to continue."

I think you have forgotten to set the following option:
/Addin="the full path to the add-in assembly"
Posted 30 Aug, 2005 01:00:07 Top
Philip Street




Posts: 53
Joined: 2005-01-25
installutil.exe /Addin="FULL_PATH_TO_ADDIN_ASSEMBLY" "FULL_PATH_TO_ADX_ASSEMBLY"


I am using the full path anyway, even for installutil.exe, e.g.

"c:\windows\microsoft.net\framework\v1.1.4322\installutil.exe" /Addin="c:\program files\British Council\BC Records\Office Addin\officeaddin.dll" "c:\program files\British Council\BC Records\Office Addin\addinexpress.mso.dll"

You don't have to register addinExpress.MSO.dll in the GAC


OK, I'll try it again but without registering addinExpress.MSO.dll.

I think you have forgotten to set the following option: /Addin="the full path to the add-in assembly"


I'm definitely using the full path.

I'll try it again but will specify a logfile this time.

Any other suggestions?

Thanks for your help,

Phil
Posted 30 Aug, 2005 04:41:24 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
You could drop me a copy of your addin so I can take a look into it ;)

Have you changed the following Methods of your Addin?


[ComRegisterFunctionAttribute]
public static void AddinRegister(Type t) {
  AddinExpress.MSO.ADXAddinModule.ADXRegister(t);
}

[ComUnregisterFunctionAttribute]
public static void AddinUnregister(Type t) {
  AddinExpress.MSO.ADXAddinModule.ADXUnregister(t);
}
Best regards,

Sven Heitmann
Posted 30 Aug, 2005 08:46:05 Top
Philip Street




Posts: 53
Joined: 2005-01-25
You could drop me a copy of your addin so I can take a look into it ;)


I can let you have the DLLs - there are ten altogether, including a couple of Microsoft Application Block DLLs. I'll probably send them from my Yahoo account, otherwise they'll get blocked by our anti-spam/virus software.

Have you changed the following Methods of your Addin?


Nope, that's not changed at all.

Watch your inbox...

Cheers,

Phil
Posted 30 Aug, 2005 09:16:14 Top
Philip Street




Posts: 53
Joined: 2005-01-25
Sven,

I have emailed the files to you.

Cheers,

Phil
Posted 30 Aug, 2005 09:48:57 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
I will take a look at them...
Best regards,

Sven Heitmann
Posted 30 Aug, 2005 10:43:13 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
Ah Ok, I got an Error Message now: in English it should be something like
"The Manifestdefinition of "AddinExpress.MSO" of the Assembly does not fit with the Assemblyreference. Error Code 4"

I got this Message in the past too, Sergey mentioned this could occur when to use a different ADX Version wich was used to build the Assembly.

What ADX Version do you use?

edit: ah I see, just amoment have to upgrade my ADX to the latest
Best regards,

Sven Heitmann
Posted 30 Aug, 2005 11:05:06 Top
Philip Street




Posts: 53
Joined: 2005-01-25
Sven,

I am using Version 2.2 Build 1752, which is the latest Premium Build released on 29 July 2005.

Sergey - could I email the same files for you to check as well?

Phil
Posted 30 Aug, 2005 11:10:55 Top