Share via


How can I include stdole.dll in my .Net 2.0 project.

Question

Sunday, June 19, 2011 2:26 AM

Hi,

 

I am developing software in VS 2010 that has to use .NET framework 2.0 and stdole.dll version 7.0.3300.0. When I try to install my program on a fresh computer, it claims I need to install stdole.dll version 7.0.3300.0. When I try to add this file to be included in my installer, it does not populate into the files application files. How do I add this file into the istallation files so that it can be included with my installation, and allow my installer to work on a fresh computer.

All replies (2)

Wednesday, June 22, 2011 12:29 PM âś…Answered

If you're using ClickOnce deploy your application, then you need to write an assembly to execute Process.Start("gacutil.exe /i stdole.dll") command, and then use the Bootstrapper Manifest Generator generate a custom prerequisites, then use the prerequisites help you to install the stdole.dll into GAC.

And for this assembly, you will need to follow my steps to make it run as admin, then it can has the admin permission to install assembly to GAC:

http://www.cnblogs.com/telnet_mike/archive/2010/11/23/Force_dotnet_application_run_as_administrator.html

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/518b0648-9d6e-4d7b-8972-80a9c16d7b20

You can follow my post to create your own prerequisites and use it to your deployment package.

 

And, if you're using Visual Studio Setup project, then you just can add the stdole.dll file into the "Global Assembly Cache Folder" folder.

http://support.microsoft.com/kb/324168

http://forums.asp.net/p/1335129/2700953.aspx

 

Or you can install it into GAC manually:

http://blog.tabsstudio.com/2010/04/20/missing-stdole-dll-with-a-custom-visual-studio-2010-installation/

 

Best wishes,

Mike [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Wednesday, June 22, 2011 7:40 AM

Hello,

This seems to be a deployment issue, I'm moving this thread to deployment and click once forum for better support.

Thank you for your understanding.

Yi

Yi Feng Li [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.