Deploying a project with VB.Net

W

W

I created a project that uses the outlook.interop library. It works
beautifully on my computer, but when i tried to run the application
from another computer it didn't work. I tried installing office 2007
on that computer, but still got the same thing.

I looked around, but couldn't figure out what to do to make my
application work on another computer. I came across the link below,
http://msdn.microsoft.com/en-us/library/aa155703.aspx

so i tried to create a new Extensibility\Shared Add-in and add it to
my solution, but it also didn't work. I already had the o2007pia.msi
right before that.

Can someone please tell me how to fix this problem?
 
W

W

I found the solution. It was actually on the same page I posted. Just
wasn't clear enough to me.
To Use the Outlook 2002 PIA in Your Solution

Assuming that you have already built your Outlook add-in project and
added a Setup project to your solution, add the Outlook 2002 PIA to
the Global Assembly Cache output folder. The PIAs and .reg files that
ship with the Office XP Primary Interop Assembly are redistributable.

In the Solution Explorer window, right-click your Setup project, point
to View, and click File System. The File System panes appear.
Right-click File System on Target Machine, point to Add Special
Folder, and click Global Assembly Cache Folder. The Global Assembly
Cache Folder is added to the File System on Target Machine folder
list.
In the Solution Explorer window, right-click
Microsoft.Office.Interop.Outlook.dll under the name of your Setup
project, and click Properties. The Property window appears.
In the Property window, in the Folder box, click the ellipsis (. . .)
button. The Select Folder dialog box appears.
Click Global Assembly Cache Folder, and click OK to close the Select
Folder dialog box.
Next, add the Outlook 2002 PIA registry entries to the Registry on
Target Machine pane.

In the Solution Explorer window, right-click your Setup project, point
to View, and click Registry. The Registry on Target Machine panes
appear.
Right-click Registry on Target Machine, and click Import. The Import
Registry File dialog box appears.
Locate and click the Microsoft.Office.Interop.Outlook.dll.reg file in
the folder in which you extracted the original Office XP PIAs, and
then click Open. The Outlook 2002 PIA registry entries are added, and
the Import Registry File dialog box disappears.
 

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