Addin Setup project for outlook 2007 using Visual studio 2008

N

Neetu

I am Creating a setup project for outlook add-in.
I create a security project as told in this Link

http://msdn.microsoft.com/en-us/library/bb332052.aspx

I gave all permission for setup project using Custom Action as per document
for install, rollback etc.
Setup.exe is got generated and I tried to install it in my machine and other
machine which have all requirements for addin outlook 2008.

Installation done properly.
however there is no addin when i opened my outlook not in trust center
-addin list.

My code is very simple with just message in loading.

Kindly suggest how to create setup project for outlook 2007 using visual
studio 2008.
 
K

Ken Slovak - [MVP - Outlook]

That document you cited plus the first part are really all you need for
correct deployment, assuming you carefully follow all the steps indicated.

After installation does the Framework configuration utility show that your
security settings were added and that the security shows full trust granted
to your assembly based on strong naming?

Do you see all the dependencies installed in the installation folder, or (in
the case of official PIA's) installed in the GAC?

Are you seeing the correct registration for your addin in the Windows
registry, both under HKCU\Software\Microsoft\Office\Outlook\Addins for addin
registration and in HKCR for your class registrations?

Have you looked at the troubleshooting information at
http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx ?
 
N

Neetu

I am testing installer in my own development machine only.
Code Access has been added into machine. however there is no entry of my
addin in registry.
 
K

Ken Slovak - [MVP - Outlook]

If your addin isn't registered obviously it won't run. Look at the
registration properties for your setup project and see what's going on
there. There should be entries for your addin going to
HKCU\Software\Microsoft\Office\Outlook\Addins\. There also should be entries
for HKCU\Software\Classes\ that set the registration for your addin assembly
classes.
 
N

Neetu

Hello Ken,

I went through this article for Addin deployment
http://msdn.microsoft.com/en-us/library/bb386179.aspx.

Now Installation is done properly. and its loading into my outlook.

However on uninstallation I am getting exception.

Unable to access some registry key.
HKEY_CURRENT_USER->HKEY_CURRENT_USER\Software->HKEY_CURRENT_USER\Software\Microsoft->HKEY_CURRENT_USER\Software\Microsoft\Protected
Storage System Provider->S-1-5-21-2387995053-655477512-1356042935-1849.
 
K

Ken Slovak - [MVP - Outlook]

I have no idea what that key is, you have to examine it in the registry
editor to see what it references, and see in your installer if you are
setting up that registry key.
 
N

Neetu

Hello Ken,
I checked that below key in my register key editor. There is no key value to
it.
In my setup project I am not using this key.

HKEY_current_user\software\microsoft\protected Storage system provider
key S-1-5-21-2387995053-655477512-1356042935-1849

I checked the permission for it. My user credentail were not in list. then i
added
my credential to it manually.
After that when i tried to uninstall my addin from " add remove problem",
remove wizard reached other point and give error message for key which i am
setting into registry.

HKCU\Software\Microsoft\Office\Outlook\Addins\mycompanyname.myaddinname.

there is three option cancel retry and ignore.
if i selects ignore.. installation is get completed and removes all registry
entry and program folders.
 
K

Ken Slovak - [MVP - Outlook]

I don't understand what error you're getting for removing the addin
registration in HKCU. There should be no permissions issues with working
with HCKU. Do you get those errors if you manually register and unregister
your addin or if you try editing that key in HKCU in the registry editor?
 

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