First of all, you need to patch the header of LegitCheckControl.dll to announce an OS version of 5.1 (it has, by default, 6.0 - which is VISTA). Failure to do so leads to Setup complaining about LgtCkCtl.dll belonging to a different OS version, subsequently refusing to copy the file (you still have an option to skip it, though).
Second. The registry entries from update.inf seemingly have to be integrated to the INF which does the registration; simple addition of the DllRegisterServer call seems not to work, for unknown reasons (I don't think it's worth checking out, since it can be easily fixed).
--
I do it this way:
1. I use Sen's HIEW
a) load LegitCheckControl.dll
b) change OSmajor to 5 (was 6), OSminor to 1 (was 0)
c) strip the digital signature (the file's overlay)
d) re-calculate the ImageSize (F3 on it :> I _love_ HIEW)
e) update the file
f) edit the header again
g) re-calculate the file's checksum (F3 on Checksum)
h) update the file
i) exit HIEW
i) pack the DLL (CABARC -m LZX:21 N LGTCKCTL.DL_ LegitCheckControl.dll)
2. I prefer updating the RVM package itself. As such,
a) extract RVMUpdatePack2.0.3.cab to a dir
b) overwrite msi.dl_ and RVMUpPck.in_ with those from RVMAddonsMSIDLLOld_1.1.cab
c) replace LgtCkCtl.dl_ with the one formerly created (on step 1)
d) extract RVMUpPck.inf from RVMUpPck.in_
e) edit RVMUpPck.inf
- add the following section:
Code: Select all
[KB892130.AddReg]
HKCR,AppID\{2DE6426A-0708-415C-8C19-623CC4855F80},,0,"LegitCheckControl"
HKCR,AppID\LegitCheckControl.DLL,"AppID",0,"{2DE6426A-0708-415C-8C19-623CC4855F80}"
HKCR,LegitCheckControl.LegitCheck.1,,0,"Windows Genuine Advantage Validation Tool"
HKCR,LegitCheckControl.LegitCheck.1\CLSID,,0,"{17492023-C23A-453E-A040-C7C580BBF700}"
HKCR,LegitCheckControl.LegitCheck,,0,"Windows Genuine Advantage Validation Tool"
HKCR,LegitCheckControl.LegitCheck\CLSID,,0,"{17492023-C23A-453E-A040-C7C580BBF700}"
HKCR,LegitCheckControl.LegitCheck\CurVer,,0,"LegitCheckControl.LegitCheck.1"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700},,0,"Windows Genuine Advantage Validation Tool"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700}\ProgID,,0,"LegitCheckControl.LegitCheck.1"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700}\VersionIndependentProgID,,0,"LegitCheckControl.LegitCheck"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700}\InprocServer32,,0,"%11%\legitcheckcontrol.dll"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700}\InprocServer32,"ThreadingModel",0,"Apartment"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700},"AppID",0,"{2DE6426A-0708-415C-8C19-623CC4855F80}"
HKCR,CLSID\{17492023-C23A-453E-A040-C7C580BBF700}\TypeLib,,0,"{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}"
HKCR,TypeLib\{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}\1.0,,0,"Windows Genuine Advantage Validation Tool"
HKCR,TypeLib\{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}\1.0\FLAGS,,0,"0"
HKCR,TypeLib\{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}\1.0\0\win32,,0,"%11%\LegitCheckControl.dll"
HKCR,TypeLib\{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}\1.0\HELPDIR,,0,"%11%\"
HKCR,Interface\{36CFF953-FB06-45AD-896F-94A0259AB3DD},,0,"ILegitCheck"
HKCR,Interface\{36CFF953-FB06-45AD-896F-94A0259AB3DD}\ProxyStubClsid,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\{36CFF953-FB06-45AD-896F-94A0259AB3DD}\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\{36CFF953-FB06-45AD-896F-94A0259AB3DD}\TypeLib,,0,"{5E649A63-7EE9-43F4-9926-0DEAA462A8FB}"
HKCR,Interface\{36CFF953-FB06-45AD-896F-94A0259AB3DD}\TypeLib,"Version",0,"1.0"
HKLM,SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{17492023-C23A-453E-A040-C7C580BBF700},"Compatibility Flags",0x10001,0
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ext\CLSID,"{17492023-C23A-453E-A040-C7C580BBF700}",,1
Code: Select all
AddReg=KB873374.AddReg,KB890830.AddReg, KB892130.AddReg, Miscellaneous.AddReg,MSXML.AddReg,MU.AddReg,SafeDisc.AddReg,WScript.AddReg
g) recompress the entire pack (CABARC -r -p -m LZX:21 N RVMUpdatePack2.0.3a.cab *.*)
Success!