/build/static/layout/Breadcrumb_cap_w.png

ActiveX in a MSI

Hi,

I have an old ActiveX to build in an MSI. Only files i have is a cab file which contains the .inf file and .ocx file. There is also an exe mfc42.exe.

I know the .inf should go, let's say in Windows\Downloaded Program files and the .ocx is going in System32 but besides that how can i populate the registry alone with so little info?

Other ActiveX I did, was by doing a capture but now, I can't use this method. So i am wondering, when you install an Activex, Registry\HKEY CLASSES_ROOT and Local Machine\Software\Microsoft\Code Store Database keys get populated among others.

How can i find the information about this to create a functional ActiveX package with only the .inf and ocx file?

Anybody can help me understand this, i would really appreciate it.

Thks

0 Comments   [ + ] Show comments

Answers (5)

Posted by: AngelD 15 years ago
Red Belt
2
Maybe this old thread may help:
http://itninja.com/question/building-msi-package-cabs&mpage=1

Here are some info that may help:
To identify which files needed to install the component, we need a machine with the ActiveX controller
already installed.

First you need to identify the ActiveX controller in "c:\windows\downloaded program files".
Open properties on the ActiveX component, and document the ID, the files needed with path's.

Search the registry and export
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Code Store Database\Distribution Units\[ID]
HKEY_CLASSES_ROOT\CLSID\[ID]

expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for ProgID
expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for Typelib
expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for VersionIndependentProgID
Export HKEY_CLASSES_ROOT\[ProgID]
Export HKEY_CLASSES_ROOT\[VersionIndependentProgID]
Export HKEY_CLASSES_ROOT\CLSID\[Typelib]
Posted by: unreal2me 15 years ago
Orange Senior Belt
0
ORIGINAL: VBScab

If you can't capture it you're going to have to find a tool with which to extract the COM information and output it to a .REG and import that .REG into the relevant tables. No offence intended but given that you're asking the question in the first place, I'd say that that was probably beyond your capabilities.

Why can you not capture?!?


Yes that was beyond my capabilities? why the question? Only active X i did was using the setup capture. This one i can't because i've been given the files as attachment. They have disabled the website that could install it automatically.

If you can help, please feel free to do it.
Thks
Posted by: anonymous_9363 15 years ago
Red Belt
0
i've been given the files as attachment. So? Right-click the INF and choose 'Install', just as you would for any INF. I suspect the MFC42.EXE contains an installer for the MS C++ runtime files. I doubt very much you'll need those so try without for now.
Posted by: unreal2me 15 years ago
Orange Senior Belt
0
ORIGINAL: AngelD

Maybe this old thread may help:
http://itninja.com/question/building-msi-package-cabs&mpage=1

Here are some info that may help:
To identify which files needed to install the component, we need a machine with the ActiveX controller
already installed.

First you need to identify the ActiveX controller in "c:\windows\downloaded program files".
Open properties on the ActiveX component, and document the ID, the files needed with path's.

Search the registry and export
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Code Store Database\Distribution Units\[ID]
HKEY_CLASSES_ROOT\CLSID\[ID]

expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for ProgID
expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for Typelib
expand HKEY_CLASSES_ROOT\CLSID\[ID] , and look for VersionIndependentProgID
Export HKEY_CLASSES_ROOT\[ProgID]
Export HKEY_CLASSES_ROOT\[VersionIndependentProgID]
Export HKEY_CLASSES_ROOT\CLSID\[Typelib]



Thanks for th info, this was very helpful and helped me understand and build my activeX.

Very appreciated
Posted by: anonymous_9363 15 years ago
Red Belt
-2
If you can't capture it you're going to have to find a tool with which to extract the COM information and output it to a .REG and import that .REG into the relevant tables. No offence intended but given that you're asking the question in the first place, I'd say that that was probably beyond your capabilities.

Why can you not capture?!?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ