472,353 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

ActiveX automatic setup from internet explorer

Hi,

I am trying to build an activeX that, if missing, will be downloaded
and setup automatically on the client's browser (internet explorer).

Using VB6, it was easy, using the <Object> tag, the classid attribute
for its reference, and the codebase attribute for its .cab file.

Now, I am using vb.net. I managed to create the object (using
ComClass<...> and ClassId, InterfaceId and EventsId.

Also, compiling it on the machine, marking the "register for COM
Interop" checkbox under the "build" property page. The object is
registered, and I can use it in a web browser.

I also managed to create a setup file (.msi) using Windows Installer
Bootstrapper, which takes the output from the first project, and I can
use it to install the object on other computers.

However, It does not download automatically, nor showing the security
warning that comes with downloading ActiveX objects. The problem is
not a browser security problem. If I use a direct link to the .msi, it
downloads it and installs it. I also tried packaging the files in a
..cab file, and use no bootstrapper, or web bootstrapper (in the setup
project property pages) but with no luck.

Thanks,
Ofer.
Nov 20 '05 #1
2 6504
What do you mean by setup?

I did such activeX embedded in a html and simply run from the client
computer... sure, it is downloaded like an applet first.

<object id="Test" classid="resTestVB.dll#resTestVB.picResShow" height="500"
width="500" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>

"Ofer Lavi" <of**@intelligate.com> wrote in message
news:95**************************@posting.google.c om...
Hi,

I am trying to build an activeX that, if missing, will be downloaded
and setup automatically on the client's browser (internet explorer).

Using VB6, it was easy, using the <Object> tag, the classid attribute
for its reference, and the codebase attribute for its .cab file.

Now, I am using vb.net. I managed to create the object (using
ComClass<...> and ClassId, InterfaceId and EventsId.

Also, compiling it on the machine, marking the "register for COM
Interop" checkbox under the "build" property page. The object is
registered, and I can use it in a web browser.

I also managed to create a setup file (.msi) using Windows Installer
Bootstrapper, which takes the output from the first project, and I can
use it to install the object on other computers.

However, It does not download automatically, nor showing the security
warning that comes with downloading ActiveX objects. The problem is
not a browser security problem. If I use a direct link to the .msi, it
downloads it and installs it. I also tried packaging the files in a
.cab file, and use no bootstrapper, or web bootstrapper (in the setup
project property pages) but with no luck.

Thanks,
Ofer.

Nov 20 '05 #2
Hi Ofer,

Thanks for posting. However, Windows Installer MSI can not achieve your
goal. If you point to an MSI file directly, it will be treated like an
ordinary file (download or open). The "Web bootstrapper" you mentioned in
fact refers to another feature. For example, we have a setup.exe. If we run
it, it will go to a particular web site and install a Windows Installer MSI
file. Then the "setup.exe" is a web bootstrapper.

To package an ActiveX control, we still need to use a CAB file. Packing the
files into a CAB file may not be sufficient. We also need to add an INF
file into the CAB if we have a number of other files in the cabinet, so
that Internet Explorer will know what files need to be copied and what
files need to be registered in the cabinet.

For more information on the issue, you may visit the link below:

Packaging ActiveX Controls
http://msdn.microsoft.com/library/de...mponents/activ
ex/packaging.asp?frame=true

On the other hand, the root of the issue here is that the DLL file
generated by VB.Net in fact is not a pure COM component. We may try to
register it with "RegSvr32.exe" and we will see an error message. Instead,
we need to register it with the "RegAsm.exe". As a result, putting the DLL
in an ActiveX CAB package will not work either. The following information
is for your reference as well:

Registering Assemblies with COM
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconregisteringassemblieswithcom.asp?frame=true

I hope the information I have provided here is useful to you. If you have
any concerns or new findings regarding this issue, please feel free to let
me know.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jeff M | last post by:
For my application an activeX refers to "program displayed within Internet Explorer" After looking over the docs for VB.NET it looks impossible....
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same...
10
by: Andrew Chalk | last post by:
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine....
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display...
1
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About...
3
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for...
8
by: Klaus Jensen | last post by:
Hi! I would like to build a small application, that should be embedded in a webpage. I want to develop it using VB.Net of course, and have the...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just...
4
by: Henrik Dahl | last post by:
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.