self-registering of TLIST32.OCX file
hi I'm new to this group,it has been a splendid experience for me to see the solutions in this forum.I have a problem in packaging an application,the appln. has an OCX file TLIST32p.ocx which get self-registered during the installation.Installation proceeds with the warning message "the tlist32p.ocx file failed to register".
Can anyone help me in registering this OCX file.i would love to hear the reason ,why this is not getting registered properly.
Can anyone help me in registering this OCX file.i would love to hear the reason ,why this is not getting registered properly.
0 Comments
[ + ] Show comments
Answers (10)
Please log in to answer
Posted by:
jonasm
18 years ago
Hi Dynamic!
How have you done the package?
If you use the Snapshot method in InstallShield, the OCX-files gets registred as long as the installation will register it. You can see that, if you have a look in the Components list. The Components that has been named with the end "_COM". For example: TLIST32.OCX_COM
/Jonas
How have you done the package?
If you use the Snapshot method in InstallShield, the OCX-files gets registred as long as the installation will register it. You can see that, if you have a look in the Components list. The Components that has been named with the end "_COM". For example: TLIST32.OCX_COM
/Jonas
Posted by:
dynamic
18 years ago
hi jonasm,
thanks for ur prompt response.i have done the repackaging through snapshot method as i got the source in the form of a MSI.all i have to do is the customizations.
The problem is with the source itself.Now is there any method to self register the OCX file manually.The OCX file is getting self registered during the installation of MSI which is the cause for the pop-up that "self registration has failed".
Temporarily, i have disabled the self-register option of the file from the file properties under the components view of the Installshield tool.
thanks for ur prompt response.i have done the repackaging through snapshot method as i got the source in the form of a MSI.all i have to do is the customizations.
The problem is with the source itself.Now is there any method to self register the OCX file manually.The OCX file is getting self registered during the installation of MSI which is the cause for the pop-up that "self registration has failed".
Temporarily, i have disabled the self-register option of the file from the file properties under the components view of the Installshield tool.
Posted by:
dynamic
18 years ago
Posted by:
MSIPackager
18 years ago
Hi,
If the file isn't registering correctly with the manufacturers install routine then I'd get in touch with them first. Maybe the version you are using isn't fully compatible with the operating system?
You can try registering the file manually at the end of the vendor install from a command line:
regsvr32 path\file.ocx
e.g. regsvr32 c:\windows\system32\myfile.ocx
But chances are you'll get the 'failed to register' error again - I'd worry about getting the vendor setup to work properly before trying to fix errors in their installation... If they say the error doesn't matter then you don't need to worry about and can leave registration disabled in your pacakge.
You can use regsvr32.exe to register .dll and .ocx files
Hope it helps,
Rob.
If the file isn't registering correctly with the manufacturers install routine then I'd get in touch with them first. Maybe the version you are using isn't fully compatible with the operating system?
You can try registering the file manually at the end of the vendor install from a command line:
regsvr32 path\file.ocx
e.g. regsvr32 c:\windows\system32\myfile.ocx
But chances are you'll get the 'failed to register' error again - I'd worry about getting the vendor setup to work properly before trying to fix errors in their installation... If they say the error doesn't matter then you don't need to worry about and can leave registration disabled in your pacakge.
You can use regsvr32.exe to register .dll and .ocx files
Hope it helps,
Rob.
Posted by:
dynamic
18 years ago
hi rob,
Thanks for the response and for your valuable information.I got clarifed in that issue from the client side,that i can ignore the error message.
But I want to know why do some files won't get registered properly.and what if regsvr32 also won't work.Is there any other method tp register the dll's and ocx files.
regards,
dynamic.
Thanks for the response and for your valuable information.I got clarifed in that issue from the client side,that i can ignore the error message.
But I want to know why do some files won't get registered properly.and what if regsvr32 also won't work.Is there any other method tp register the dll's and ocx files.
regards,
dynamic.
Posted by:
MSIPackager
18 years ago
Posted by:
dynamic
18 years ago
Posted by:
jonasm
18 years ago
Hi again Dynamic!
To make it clear what i wrote before: (This is if you use InstallShield to repackage)
1. If you use the snapshot method your COM-registrations will be included in the package. The components thats have been registred has been renamed to ComponentName_COM. This is because Snapshot Method listens to regsrv32-calls. Remeber that you don't need to manually register the COM-files that InstallShield already has registred for you.
2. If you use the Installation Monitoring method your COM-registration will NOT be registred. This is because Installation Monitoring does not listen to regsvr32-calls. In this case you need to register them yourself.
You can usually use Dependency Walker, http://www.dependencywalker.com/, to find out what a exe/dll/ocx-file has for dependencys. It's free to use.
Microsoft has there own database for DLL-files (not OCX's tho!). Here can you search for (microsoft-) DLL-files and se what they are for. http://support.microsoft.com/dllhelp/
This maybe did not help you in this case, but I hope you learned something new!
/Jonas
To make it clear what i wrote before: (This is if you use InstallShield to repackage)
1. If you use the snapshot method your COM-registrations will be included in the package. The components thats have been registred has been renamed to ComponentName_COM. This is because Snapshot Method listens to regsrv32-calls. Remeber that you don't need to manually register the COM-files that InstallShield already has registred for you.
2. If you use the Installation Monitoring method your COM-registration will NOT be registred. This is because Installation Monitoring does not listen to regsvr32-calls. In this case you need to register them yourself.
You can usually use Dependency Walker, http://www.dependencywalker.com/, to find out what a exe/dll/ocx-file has for dependencys. It's free to use.
Microsoft has there own database for DLL-files (not OCX's tho!). Here can you search for (microsoft-) DLL-files and se what they are for. http://support.microsoft.com/dllhelp/
This maybe did not help you in this case, but I hope you learned something new!
/Jonas
Posted by:
WiseUser
18 years ago
The following command will tell you whether a library is intended to self-register:
Findstr /i DllRegisterServer <path to dll or ocx file>
If you get anything back in the console window, it's a self-registering library. The dependency walker tool will also tell you this information.
Sometimes libraries depend on other libraries to be registered before they can be regsitered themselves. "Regsvr32" does not always return helpful information in these cases.
Sometimes you can get more useful information by running the following command line:
Rundll32 <path to dll or ocx file>,DllRegisterServer
Note that "DllRegisterServer" is case-sensitive.
Dependency walker can also be used to determine what the dependencies might be. Otherwise, "Filemon.exe" can be used whilst running "Regsvr32" to provide clues.
Findstr /i DllRegisterServer <path to dll or ocx file>
If you get anything back in the console window, it's a self-registering library. The dependency walker tool will also tell you this information.
Sometimes libraries depend on other libraries to be registered before they can be regsitered themselves. "Regsvr32" does not always return helpful information in these cases.
Sometimes you can get more useful information by running the following command line:
Rundll32 <path to dll or ocx file>,DllRegisterServer
Note that "DllRegisterServer" is case-sensitive.
Dependency walker can also be used to determine what the dependencies might be. Otherwise, "Filemon.exe" can be used whilst running "Regsvr32" to provide clues.
Posted by:
dynamic
18 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.