Discussion:
Shim Wizard for Visual Studio 2010
(too old to reply)
Sanjay
2010-09-14 00:40:35 UTC
Permalink
Does Microsoft have a shim Wizard available for Visual Studio 2010?

Is there any good online documentation available on using Shims for
deploying Outlook shared addins.

Thanks
Sanjay
Ken Slovak
2010-09-14 13:33:33 UTC
Permalink
Yes, there's a shim wizard for VS 2010, and even instructions on how to shim
64-bit addins.

Look at Misha Shneerson's blog (http://blogs.msdn.com/b/mshneer/), it has
links to the new shim wizard and information on how to use it, as well as
lots of other shim and addin information. In addition to Misha's blog (he's
one of the authors of the shim wizard), see Andrew Whitechapel's blog
(http://blogs.msdn.com/b/andreww/). Andrew also has a lot of valuable
information on shimming and COM Interop.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by Sanjay
Does Microsoft have a shim Wizard available for Visual Studio 2010?
Is there any good online documentation available on using Shims for
deploying Outlook shared addins.
Thanks
Sanjay
Sanjay
2010-09-14 21:44:58 UTC
Permalink
Thanks Ken. I downloaded and tried the shim wizard from Misha's blog.
I receive the following errors at the end of the Wizard (as the
Wizard is creating the files).

The template specified cannot be found. Please check that the full
path is correct.

followed by...

Exception from HRESULT: 0x80041FE1

Thw Wizard ends up creating a lot of files under the AddinsShim
project but there is no ManagedAggregator project under the solution.

Is there an easy answer to this?

Thanks in advance.

Sanjay
Post by Ken Slovak
Yes, there's a shim wizard for VS 2010, and even instructions on how to shim
64-bit addins.
Look at Misha Shneerson's blog (http://blogs.msdn.com/b/mshneer/), it has
links to the new shim wizard and information on how to use it, as well as
lots of other shim and addin information. In addition to Misha's blog (he's
one of the authors of the shim wizard), see Andrew Whitechapel's blog
(http://blogs.msdn.com/b/andreww/). Andrew also has a lot of valuable
information on shimming and COM Interop.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Post by Sanjay
Does Microsoft have a shim Wizard available for Visual Studio 2010?
Is there any good online documentation available on using Shims for
deploying Outlook shared addins.
Thanks
Sanjay
Ken Slovak
2010-09-14 22:55:30 UTC
Permalink
I'd have to see what's going on, I haven't tried the 2010 shim wizard yet.
This was tested with what type of setup and addin (Outlook version, bitness,
anything else useful)? Which download did you use?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Sanjay" <***@gmail.com> wrote in message news:21831b25-5ced-4c16-99f9-***@k1g2000prl.googlegroups.com...
Thanks Ken. I downloaded and tried the shim wizard from Misha's blog.
I receive the following errors at the end of the Wizard (as the
Wizard is creating the files).

The template specified cannot be found. Please check that the full
path is correct.

followed by...

Exception from HRESULT: 0x80041FE1

Thw Wizard ends up creating a lot of files under the AddinsShim
project but there is no ManagedAggregator project under the solution.

Is there an easy answer to this?

Thanks in advance.

Sanjay
Sanjay
2010-09-14 23:02:24 UTC
Permalink
Outlook 2010, 32 Bit

Downloaded Shim Wizard from: http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-for-vs-2010.aspx

Addin is very basic at the moment... just adding a button to both the
explorer and inspector ribons

I also get the same error if I use the Shared Addin template from your
book.
Post by Ken Slovak
I'd have to see what's going on, I haven't tried the 2010 shim wizard yet.
This was tested with what type of setup and addin (Outlook version, bitness,
anything else useful)? Which download did you use?
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Thanks Ken. I downloaded and tried the shim wizard from Misha's blog.
I receive the  following errors at the end of the Wizard (as the
Wizard is creating the files).
The template specified cannot be found. Please check that the full
path is correct.
followed by...
Exception from HRESULT: 0x80041FE1
Thw Wizard ends up creating a lot of files under the AddinsShim
project but there is no ManagedAggregator project under the solution.
Is there an easy answer to this?
Thanks in advance.
Sanjay
Ken Slovak
2010-09-15 18:00:03 UTC
Permalink
I don't know what the problem is, it worked fine here.

I downloaded the shim wizard from that link and ran the MSI that was
attached to Misha's blog post. I installed it on a VS 2010 setup running on
a Win7-64bit machine with Outlook 2010 32-bit installed. I took an existing
addin (shared, using extensibility) and ran the shim wizard.

I pointed it at the compiled dll for the addin and pretty much went with the
rest of the defaults. I set it for only Outlook. The wizard ran with no
errors and created both shim and managed aggregator projects for the
solution, both of which compiled OK. I just got a few warnings about wp64
being deprecated and not working going forward.

I did start up VS 2010 using "run as admin", but I always do that when
running it on Win7.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Sanjay" <***@gmail.com> wrote in message news:b0dddde6-8a2b-4c68-a609-***@x24g2000pro.googlegroups.com...
Outlook 2010, 32 Bit

Downloaded Shim Wizard from:
http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-for-vs-2010.aspx

Addin is very basic at the moment... just adding a button to both the
explorer and inspector ribons

I also get the same error if I use the Shared Addin template from your
book.
Sanjay
2010-09-15 20:41:07 UTC
Permalink
My setup sounds identical to yours.

I previously only had VB installed and then added VC++ to Visual
Studio 2010.

Is there any other part of Visual Studio that maybe needs to be
installed because it is used by the Shim Wizard?

As always, thank you for your help.

Regards
Sanjay
Post by Ken Slovak
I don't know what the problem is, it worked fine here.
I downloaded the shim wizard from that link and ran the MSI that was
attached to Misha's blog post. I installed it on a VS 2010 setup running on
a Win7-64bit machine with Outlook 2010 32-bit installed. I took an existing
addin (shared, using extensibility) and ran the shim wizard.
I pointed it at the compiled dll for the addin and pretty much went with the
rest of the defaults. I set it for only Outlook. The wizard ran with no
errors and created both shim and managed aggregator projects for the
solution, both of which compiled OK. I just got a few warnings about wp64
being deprecated and not working going forward.
I did start up VS 2010 using "run as admin", but I always do that when
running it on Win7.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Outlook 2010, 32 Bit
Downloaded Shim Wizard from:http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-f...
Addin is very basic at the moment... just adding a button to both the
explorer and inspector ribons
I also get the same error if I use the Shared Addin template from your
book.
Sanjay
2010-09-16 00:28:05 UTC
Permalink
Problem solved. Uninstalled the shim wizard.. restarted the
computer... then installed more components of Visual Studio
(everything except SQL Server)... reinstalled the Wizard.

Seems to work now.

Thanks
Sanjay
Post by Sanjay
My setup sounds identical to yours.
I previously only had VB installed and then added VC++ to Visual
Studio 2010.
Is there any other part of Visual Studio that maybe needs to be
installed because it is used by the Shim Wizard?
As always, thank you for your help.
Regards
Sanjay
Post by Ken Slovak
I don't know what the problem is, it worked fine here.
I downloaded the shim wizard from that link and ran the MSI that was
attached to Misha's blog post. I installed it on a VS 2010 setup running on
a Win7-64bit machine with Outlook 2010 32-bit installed. I took an existing
addin (shared, using extensibility) and ran the shim wizard.
I pointed it at the compiled dll for the addin and pretty much went with the
rest of the defaults. I set it for only Outlook. The wizard ran with no
errors and created both shim and managed aggregator projects for the
solution, both of which compiled OK. I just got a few warnings about wp64
being deprecated and not working going forward.
I did start up VS 2010 using "run as admin", but I always do that when
running it on Win7.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Outlook 2010, 32 Bit
Downloaded Shim Wizard from:http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-f...
Addin is very basic at the moment... just adding a button to both the
explorer and inspector ribons
I also get the same error if I use the Shared Addin template from your
book.
Loading...