Automatic installation of activeX

I am a web developer and my current task is to create an ActiveX component.

This is the first time I have to work with ActiveX and I was able to create a working example.

However, I cannot install ActiveX from the browser. When you install it with visual studio 2008 and run the webpage everything works as expected, when I don't have it I would expect something similar to Windows Updates asking me if I would allow installation but that doesn't happening ....

This is how I place it on the webpage:

<object id="myActiveX" name="myActiveX" classid="clsid:A68B19C8-9DB4-49e4-912F-37FB44968528"
                 codebase="http://localhost/myWebSite/install.cab#version=1,0,0,0"></object>

      

The guide in classId matches the guide I created for my class.

Can anyone point out what I am missing?

Edit:

Forgot to mention this, I have a setup project for my ActiveX that generates .msi and Setup.exe

I made a booth file with files using .inf file like so:

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1

[hook1]
run=msiexec.exe /i %EXTRACT_DIR%\Install.msi /qf

      

0


source to share


1 answer


You might want to check your IE security settings: unsigned ActiveX controls are ignored by default.

Here's another possibility:

Have you marked your control as "safe for scripting" and "safe for initialization"?



I'm not sure if this is the problem you are working with as 1) your HTML sample code does not show that you are using a control in your script and 2) the HTML snippet shown does not show that you are setting control properties. This is a common pitfall, however, so if I were you I would take a look.

IIRC this can be achieved either by implementing the IObjectSafety interface or by using registry settings.

This and this are 2 pointers to get you started.

+2


source







All Articles