[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 478
  • Last Modified:

OCX Register

I have a *.ocx file. How to register this OCX by writing a batch file? I want to do this from the setup program.
0
jayku
Asked:
jayku
1 Solution
 
jmmougeolleCommented:
You just have to call the regsvr32.exe in that way:

regsvr32.exe /s /c MyControl.OCX

within the ActiveX Control directory.

/s is for silent
/c is for display error message in consol (other case it will appear in dialog box)

regsvr32.exe could be found in Micrsoft developement Redist directory, in any MSVC installation in the Bin dir. It could be redist freely...

May the MFC be with you!
jmmougeolle@calva.net
0
 
jaykuAuthor Commented:
Thanks a lot
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now