Click here to Skip to main content
16,020,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I have created an activeX and a MSI file to install it, and it works perfectly in Internet Explorer 8 if I install it manually.

I have also created a CAB file with an INF like this:

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1
[hook1]
run=msiexec.exe /i """%EXTRACT_DIR%\IAGActiveXNetSetup.msi""" /qf

so the activeX is installed automatically when an user visits my webpage. When that happens, the installer is executed, and the installation completes, but the activeX is not loaded in the webpage. I have to close Internet Explorer and reopen it for the activeX control is loaded.

The error I am getting in the first visit to the webpage is

*** Code Download Log entry (05 Jan 2010 @ 14:46:11) ***
Code Download Error: (hr = 80070002) El sistema no puede encontrar el archivo especificado.

Operation failed. Detailed Information:
CodeBase: http://localhost/iag/dotnet/bin/IAGActiveXNet.cab
CLSID: {577BF17F-B59A-4DA5-965E-7834044030B3}
Extension:
Type:

LOG: Setup Hook hook1 was executed successfully.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 / hrResponseHdr = 0).
LOG: URL Download Complete: hrStatus:0, hrOSB:0, hrResponseHdr:0, URL:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab)
LOG: Setup Hook hook1 was executed successfully.
LOG: Setup successful installing: IAGActiveXNet.inf to (null) destination code(0)
LOG: Reporting Code Download Completion: (hr:80070002, CLASSID: 577bf17f..., szCODE:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab), MainType:(null), MainExt:(null))


However, as I said, I close and reopen the Explorer and... there it is! The control is loaded.

It this a common problem? Am I missing any important point?

Thank you!
Posted

I had done the same thing few years back with little success.

You can do run the setup from the active X itself.From the source code of Active X, run the MSI installation.

Else you can do one thing, run the MSI after active X is loaded.Put the installer srcipt in the later section of the inf file.
 
Share this answer
 
Sure, but what I am trying to do is to install the ActiveX, so I cannot run the MSI suppossed to install the ActiveX from the ActiveX itself if it is not installed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900