MSCOMCTL.OCX Registration is failing some times in Windows7 -64bit
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.
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.