One of my application requires the regestration of "MSCOMCTL.OCX" file, I tried regestering this file using this script, 


On Error Resume Next

Set oShell = CreateObject("Wscript.Shell") 

oShell.Run "RegSvr32 /s " & chr(34) & "C:\Program Files (x86)\Diebold\EdcView\MSCOMCTL.OCX" & chr(34)


I tried this file giving the location "C:\Program Files (x86)\Diebold\EdcView\MSCOMCTL.OCX", "C\Windows\system32" and "C\Windows\syswow64"

the problem is some times the regestration was successful and sometimes not. Could you help me which is the perfect location for this file to be regesterd successfull all the times in Windows7 64 bit envirement

Any suggessions wil be appreciated.


0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



MSCOMCTL.OCX is available as a Microsoft Merge Module. Use that instead of registering it.

If you still need a registered version then you can extract the COM Information of it using Installshield/WISE and then embed that in package. Do not register it using Custom Action.

Answered 04/30/2012 by: piyushnasa
Red Belt

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




oShell.Run "RegSvr32 /s " & chr(34) & "C:\Program Files (x86)\Diebold\EdcView\MSCOMCTL.OCX" & chr(34)


RegSvr32 can be found at following location in 64 bit OS

1.C:\Windows\SysWOW64 - 32 bit one

2. C:\Windows\System32 - 64 bit 

I hope you are getting my point here..



Answered 05/01/2012 by: rock_star
Second Degree Black Belt

Please log in to comment