.OCx failed to register
Hi
I am getting an error message,while running the .msi as " Failed to register the .ocx"
As per the Appdeploy Knowledgebase I removed the .ocx entries from the selfReg table but I want to know how safe is it?
Is there any other way to automate the self registartion of the components and not handle manually?
Please suggest.
I am getting an error message,while running the .msi as " Failed to register the .ocx"
As per the Appdeploy Knowledgebase I removed the .ocx entries from the selfReg table but I want to know how safe is it?
Is there any other way to automate the self registartion of the components and not handle manually?
Please suggest.
0 Comments
[ + ] Show comments
Answers (30)
Please log in to answer
Posted by:
cygan
15 years ago
Posted by:
cygan
15 years ago
as per microsoft best practises it is bad news registering dll's / ocx's via the selfreg table
you can use wisecomcapture to extract the reg entries from the dll and then create a new component and add the reg entries to that component.
or you can use a custom action to register the dll / ocx running regsvr32.exe /s
you can use wisecomcapture to extract the reg entries from the dll and then create a new component and add the reg entries to that component.
or you can use a custom action to register the dll / ocx running regsvr32.exe /s
Posted by:
Star
15 years ago
Posted by:
mekaywe
15 years ago
Posted by:
Star
15 years ago
Posted by:
mekaywe
15 years ago
Posted by:
Star
15 years ago
Posted by:
mekaywe
15 years ago
Posted by:
cygan
15 years ago
the tables you need are the custom action table and the installexecutesequence table
custom action table
action type source target
CAname 34 SystemFolder regsvr32.exe /s "<path to ocx>"
Installexecutesequence table
action condition sequence
CAname Not Installed seqnence number
you will need to sequence your CA after installfinalise action
ie if installfinalise action is 6600
then CAname will be 6650
hope you are running msi with the qb /qn switch
custom action table
action type source target
CAname 34 SystemFolder regsvr32.exe /s "<path to ocx>"
Installexecutesequence table
action condition sequence
CAname Not Installed seqnence number
you will need to sequence your CA after installfinalise action
ie if installfinalise action is 6600
then CAname will be 6650
hope you are running msi with the qb /qn switch
Posted by:
Star
15 years ago
Posted by:
AngelD
15 years ago
As you don't seem to have any Wise packaging product then the best way would be to use another tool rather then use WiseComCapture as it is a tool that comes with Wise.
I recommend that you don't use a custom action but add the COM component registration info into the Registry table.
So to do this with ORCA you need to use another ORCA look alike table editor.
Downloading InstEd (www.instedit.com) and RegSpy (RegSpy2.zip from http://www.installsite.org/pages/en/tt_analyze.htm), they are both free.
Extract the COM component registration info into a .reg file using RegSpy.
Open the MSI or MSI+MST (depending on which you want to update) in InstEd and import the .reg file (http://www.instedit.com/importing.regfiles.html) created by RegSpy.
I recommend that you don't use a custom action but add the COM component registration info into the Registry table.
So to do this with ORCA you need to use another ORCA look alike table editor.
Downloading InstEd (www.instedit.com) and RegSpy (RegSpy2.zip from http://www.installsite.org/pages/en/tt_analyze.htm), they are both free.
Extract the COM component registration info into a .reg file using RegSpy.
Open the MSI or MSI+MST (depending on which you want to update) in InstEd and import the .reg file (http://www.instedit.com/importing.regfiles.html) created by RegSpy.
Posted by:
cygan
15 years ago
Posted by:
Star
15 years ago
Posted by:
Star
15 years ago
Posted by:
cygan
15 years ago
Posted by:
Star
15 years ago
Posted by:
cygan
15 years ago
Posted by:
AngelD
15 years ago
ORIGINAL: Star
"Extract the COM component registration info into a .reg file using RegSpy."
Could you please explain how? as the RunSpy.exe doesnt seem to do anything?
runspy.exe <path to .ocx>
place the .ocx file where it should be installed before running the command so the .reg file will point to the correct location
Posted by:
Star
15 years ago
Posted by:
Star
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
Star
15 years ago
Posted by:
cygan
15 years ago
Posted by:
Star
15 years ago
Posted by:
Star
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.