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.
Thanks
Answers (2)
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..
http://support.microsoft.com/kb/282747
http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/a6d06695-87b8-4fa6-8b9c-a3547829ab76