Shared Add-In installation problem

N

Neur

There are a Shared Add-In solution (for Word) created in Visual Studio 2005.
I need to install AddIn without an automatically generated *.msi file. I
tried to do next:
1. Change some registry enrties.
2. Register new assembly with regasm.exe.
After that my Add-In appears in the Word's Add-Ins list... but in the
"inactive" group. I.e. Word doesn't load it =( Why?
 
N

Neur

Patrick Schmid said:
Why can't you use the MSI?

I need to integrate AddIn installation into my msi, that installs some
others applications. It will be great to build MSM-module in VS2005 instead
of MSI, but I don't now how...
 
P

Patrick Schmid [MVP]

You should look into wix: wix.sourceforge.net
Do you have a COM shim?
Are you installing this per user or per machine?
Are you assuming the PIAs are already installed or not?
What is your target operating system?
What version(s) of Office are you targeting?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
N

Neur

You should look into wix: wix.sourceforge.net

But it's only a toolset for creating msi... Isn't it? I know HOW to create
msi-package, but I don't know WHAT it should do.
Do you have a COM shim?

No, I can't use shim... i.e. it would be undesirable.
Are you installing this per user or per machine?

I need to install AddIn per machine.
What is your target operating system?

Windows 2000 and greater...
What version(s) of Office are you targeting?

Office 2007
 
P

Patrick Schmid [MVP]

First of, your target OS is Windows XP SP2 or greater, because Office
2007 won't run on anything older.
Big question: Can you assume that the Office 2007 PIAs are installed or
not? (that assumes that .NET 2 was installed prior to Office 2007 and
that it was installed with .NET Support). If not, is it a problem if you
just install them in any case (admin rights required)?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
N

Neur

I install .NET 2 before Offce 2007 under administrator account...

PS: In the managing AddIns dialog (Word 2007) sometimes appears a text "Not
Loaded. A runtie error occured durning the loading of the COM Add-in." in the
"Load Behavior" field instead of "Load at Startup".
 
P

Patrick Schmid [MVP]

If you are guaranteed to have the PIAs installed, then you only need to
include the DLL and the reg entries to load it.
If that message occurs, then you have an error in the program.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
N

Neur

Patrick Schmid said:
If you are guaranteed to have the PIAs installed, then you only need to
include the DLL and the reg entries to load it.
If that message occurs, then you have an error in the program.

It works normal after installation using standard msi file...

Where can I see installed PIAs? I found Microsoft.Office.Interop.Word in
assemblies. Is it a PIA for MS Word COM-object model?

There are several references in my VS2005 solution to another COM-object
models. But VS2005 automaticallu generated *.dll files for each that, like
Interop.COMServerName.dll (In MyProject\bin\ directory). I thought, that it's
a PIAs for them and also registered them with RegAsm. But they didn't appear
in assemblies list...
 
P

Patrick Schmid [MVP]

Those are the PIAs. You don't have to ship them with your MSI, if they
are already installed. You could just install the PIA's via your setup
bootstrapper:
http://www.microsoft.com/downloads/details.aspx?familyid=59daebaa-bed4-4282-a28c-b864d8bfa513

For Word, you need Microsoft.Office.Interop.Word.dll, office.dll,
extensibility.dll and stdole.dll. The redistributable will install all
of them.

What are you installing right now as part of your particular MSI? Which
DLLs, which reg entries?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
N

Neur

I do the next steps on the "clear" machine:
1) Install framework 2
2) Install Office 2007
3) Install my com-servers (will be used in AddIn)
4) RegAsm MyAddIn.dll
5) RegAsm Interop.MyComSrv1.dll
6) RegAsm Interop.MyComSrv2.dll
7) RegEdit:
7.1) Add folder:
HKLM\Software\Microsoft\Office\Word\Addins\MyAddIn.Connect
7.2.) Add keys in that folder:
REG_SZ Description = MyAddInDescription
REG_SZ FriendlyName = MyAddInName
REG_DWORD LoadBehavior = 3
8) Start Word 2007
 
P

Patrick Schmid [MVP]

N

Neur

If you do a typical Office install, 5 & 6 shouldn't be necessary.

5 & 6 - it's _my_ com servers, which I need to use in AddIn...
Do your steps work?

PIA's for my com servers don't appear in run/assembly... Is that bad?
 
P

Patrick Schmid [MVP]

Weren't 5 & 6 are the Office PIAs. Office 2007 should install them in a
typical install already.
The big question is: Is the add-in working or not? If it's working then
it's no problem if they don't appear there...

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
N

Neur

The big question is: Is the add-in working or not?

It works, only when I installing it with msi (generated by VS2005). And it
doesn't work, when I try to install it manually.

Another question: Should I sign all PIAs (except Office PIA)? What should I
sign at all (VS2005 msi works great without my certificates... doesn't ask me
about them)?
 
P

Patrick Schmid [MVP]

You should sign all DLLs you create, all MSIs and all EXEs. Also make
sure to strong name your .NET Add-in.
What do you actually want to create? A different MSI that has all your
stuff? A batch file that installs your things?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top