Jump to content

Register 32bit CoreAVC codec on 64bit OS


xyzxyz

Recommended Posts

Hi guys

I'm trying to make a silent install cmd file of CoreAVC 2.0 for both 32/64bit operating systems

here is my batch file:

@echo off

%windir%\REGEDIT.EXE /s "license.reg"

mkdir "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\CoreCodec\CoreAVC Professional Edition"

if %PROCESSOR_ARCHITECTURE%==AMD64 GOTO x64

mkdir "%programfiles%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVC Professional Edition-uninstall.exe" "%programfiles%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVCReadme.txt" "%programfiles%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVCDecoder.ax" "%programfiles%\CoreCodec\CoreAVC Professional Edition"

copy "shortcuts\x86\*.*" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\CoreCodec\CoreAVC Professional Edition"

%windir%\system32\rundll32.exe "%ProgramFiles%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax",DllUnregisterServer

%windir%\system32\rundll32.exe "%ProgramFiles%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax",DllRegisterServer

GOTO end

:x64

mkdir "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVC Professional Edition-uninstall.exe" "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVCReadme.txt" "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVCDecoder.ax" "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition"

copy "setup\CoreAVCDecoder64.ax" "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition"

copy "shortcuts\x64\*.*" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\CoreCodec\CoreAVC Professional Edition"

%windir%\system32\rundll32.exe "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax",DllUnregisterServer

%windir%\system32\rundll32.exe "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax",DllRegisterServer

%windir%\system32\rundll32.exe "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder64.ax",DllUnregisterServer

%windir%\system32\rundll32.exe "%ProgramFiles(x86)%\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder64.ax",DllRegisterServer

:end

Theres no issue with registering the 32bit codec for a 32bit OS nor the 64bit codec for a 64bit OS.

The only issue I'm having is getting the 32bit codec installed in a 64bit Windows 7 (I'm using MPC-HC x86 Under Windows 7 64 so I need the 32bit version of CoreAVC on my system).

rundll.png

I've also tried registering the .ax file with syswow64\rundll32.exe which returns the same error, and with regsvr32 which doesn't return any error but also doesn't seem to register the codec for use with MPC.

Appreciate your help :)

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...