View Single Post
Old 8th January 2018, 11:07   #3069  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
Just a quick question about the mscomctl_reg.bat in the AVStoDVD\Lib folder for users of the noinstall version:

I noticed that you added a new version of this batch file which first checks if the OS is 32-bit or 64-bit and then unregisters/reregisters the OCX file in the appropriate folder. The older version of the batch file just blindly used the OCX file in the AVStoDVD\lib folder.

Could there be a conflict for users of the noinstall version if the VB runtimes have never been installed before? This would mean that the file MSCOMCTL.OCX would not be present neither in System32 nor in SysWOW64. So the batch file would fail unregistering/reregistering the file. Shouldn't the OCX file from the AVStoDVD\Lib folder first be copied to the appropriate system folder before trying to unregister/register it if it is not already present in this folder? So the batch file should look like this:
Quote:
@echo OFF
setlocal

reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT

if %OS%==32BIT set syswindir=%windir%\System32
if %OS%==64BIT set syswindir=%windir%\SysWOW64

IF NOT EXIST %syswindir%\mscomctl.ocx COPY mscomctl.ocx %syswindir%

regsvr32 /u %syswindir%\mscomctl.ocx
regsvr32 %syswindir%\mscomctl.ocx

Cheers
manolito

Last edited by manolito; 8th January 2018 at 11:14.
manolito is offline   Reply With Quote