Deploying and registering OCX files using ConfigMgr 2012

sccm logo
SCCM Logo

Estimated reading time: 1 minutes

I’ve been asked about deploying and registering OCX files, well this is how we do ours…

Copy the INF and OCX files to a readily available location on the network. Also create two batch files (give the extension name of .cmd) with the following in each:

Batch file 1 (File Copy):

xcopy LOCATION_OF_FILES*.* “c:WindowsDownloaded Program Files” /e /c /i /g /h

Batch File 2 (OCX Reg):

regsvr32 /s “%windir%Downloaded Program FilesNAME_OF_OCX_FILE.ocx”

Then create 2 packages (yes both the same but one to copy and one to register) for those files in CM2012.

For the first package, lets call it “File Copy”, make the program point to the Batch File 1 (File Copy)

For the second package, lets call that “OCX Reg”, make the program point to the Batch File 2 (OCX Reg).

Then distribute those packages to your DPs so that are available.

Then, you create a Task Sequence under Operating Systems. Create two “Install Package” in this task sequence.

Then have the File Copy package run first, then the OCX reg one run second.

Deploy the task sequence to which ever collection you want it to go to and it should work!

Click to rate this post!
[Total: 0 Average: 0]

Share this content:

Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

Your email address will not be published. Required fields are marked *