Microsoft.mshtml.dll in Setup project

J

JM

Hi,

I have created a windows application which uses Microsoft.mshtml.dll
for displaying browser window in the application for showing html.

When I am creating a setup program, I have to include
Microsoft.mshtml.dll in the Setup project. I am using VS 2003 Setup
program and my app is in C#. Now the problem is the size of this dll is
around 7.6 MB, so the size of setup program is huge.

I have .NET framework 1.1 with VS 2003 installed on my system. The
location of this dll on my system is at: "C:\Program
Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll".

Now my question is:

1. Is this dll is located at same location on every PC having .NET 1.1
installed?

2. If #1 is true, then as my application is .NET 1.1 compatible, can I
create a setup program without physically including
Microsoft.mshtml.dll in the setup project. And how can I achieve this
in Setup program of VS 2003?

Thanks in advance
JM
 
C

chanmm

You can just install the .Net framework 1.1 in any 2 PCs and copy the exe
file there and run. Then you will get the answer.

chanmm
 
G

Guest

JM said:
1. Is this dll is located at same location on every PC having .NET 1.1
installed?

2. If #1 is true, then as my application is .NET 1.1 compatible, can I
create a setup program without physically including
Microsoft.mshtml.dll in the setup project. And how can I achieve this
in Setup program of VS 2003?

Hello JM,

The assembly Microsoft.Mshtml.dll is not installed by default with .NET
Framework's redistributables package. They are usually distributed via
Microsoft Office and other Primary Interop Assemblies packages.

However, if you know for a fact that all machines that the application will
be deployed to have these PIA installed, you could exclude the assembly from
the deployment project in Visual Studio (see the included/detected
dependencies Solution Explorer and select 'Exlude' from the context menu).
 

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