Archive: Richtx.ocx keeps needing replacement and reboot


Richtx.ocx keeps needing replacement and reboot
The RegTool problem came to light because my setup wants to reboot every time I run it.

The specific file that causes a problem is Richtx32.ocx

I install it with:
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_PROTECTED "${REDISTRIB}\richtx32.OCX" "$SYSDIR\richtx32.OCX" "$SYSDIR"

It queues a rename of a file to become richtx32.ocx after reboot.
The existing one in system32 is older and lower version than the one my setup wants to replace it with. But after reboot it seems the old one is back again.

existing v6.0.88.77 260096 bytes Created March 12, 2001 5:07:46PM
replace with v6.1.97.82 212240 bytes Created March 09, 2004 1:00:00AM


Why does it revert to the old one? Even if the file is in use, I thought $ALREADY_INSTALLED would make it not do anything (I run same setup repeatedly, my exe is there and the already installed test is done, it should be true)


This is probably Windows. It stores a backup copy in $SYSDIR\dllcache. If the one in $SYSDIR changes in any way (file size etc), Windows will replace it with the backup copy.

-Stu