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

Question
-
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.
- Moved by Yi Feng Li Wednesday, June 22, 2011 7:41 AM deployment issue (From:Visual Studio Source Control and SourceSafe)
Sunday, June 19, 2011 2:26 AM
Answers
-
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://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:
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.
- Marked as answer by Mike Dos Zhang Friday, June 24, 2011 9:24 AM
Wednesday, June 22, 2011 12:29 PM
All replies
-
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.
Wednesday, June 22, 2011 7:40 AM -
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://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:
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.
- Marked as answer by Mike Dos Zhang Friday, June 24, 2011 9:24 AM
Wednesday, June 22, 2011 12:29 PM