Hi,

Can onyone please tell me clearly how to register .ocx files in a easy way using installshield. I kow the cmd where when I am using the command 

 

regsvr32 .ocx it is succeding but I don't know how to do it using InstallShield

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

Here are five methods to accomplish this task:

  1. In the Setup Design view, right-click the desired feature and select Component Wizard. Browse to the file, add it and select the Extract COM Info Immediately checkbox. Then complete the Component Wizard.
  2. In the Setup Design view, click the component that contains the DLL and set the COM Extract at Build property to Yes.
  3. In the Setup Design view, click the component that contains the DLL, expand the Files node, right-click the key file and select Extract COM Data for Key file.
  4. In the Setup Design view, click the component, expand the Files node, right-click the key file, select Properties, then select the Self-Register checkbox. Be sure to click Apply, then OK.
  5. In the InstallScript view, you can do manual registration by calling regsvr32.exe. If you are doing this from an InstallScript custom action in a Basic MSI project, you may need to set the custom action to Deferred in System Context.
Answered 01/27/2013 by: jdornan
Red Belt

  • Thanks Man, your five solutions will fix all of the problems with .ocx/ .dll registrations
Please log in to comment

Answers

1

here's another great document about the whole concept behind this "COM Registration"  and how you can optimize your package ( wthout a lot of "garbage registry")

Answered 01/28/2013 by: jaybee96
Red Belt

  • http://www.itninja.com/link/com-registration-in-adminstudio
  • Thank You Jay, very much appreciated
Please log in to comment
0

Thank You I will try it and confirm Jdornan

Answered 01/27/2013 by: removedbyuser85960
Green Belt

Please log in to comment
0

 

 

 

Hi, Jaybee, The 2 and 3 procedure of the doc is not working for me, can anyone please look into it and let me know what is wrong with my package

 

Answered 01/28/2013 by: removedbyuser85960
Green Belt

Please log in to comment
0

Hi, I am back onto this thread.

I am able to register .ocx and able to make it work perfectly but here is the issue.

I installed it and it is running fine. Then Uninstalled it. Then reinstalled it, then I get the error

"could not connect to the key clsid\inprocserver32 verify that you have sufficient access to that key"

So, it is not uninstalling perfectly, is there any solution in how to do that.

Regards

Answered 01/29/2013 by: removedbyuser85960
Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity