A new version of a dll registered with Regsvr32 works but on restart it reverts to the previous version. Why?
Posted on 2008-06-18
I have developed a dll (WBSTransaction.dll) that is called from within a vbs script. This has been in use for several years saving data into a Sage Retrieve 4GL database. It has been necessary to rewrite WBSTransaction.dll as the data is now stored in an Access database. This has been tested thoroughly before installing the revised dll on site.
On start up each PC runs a script that automatically loads the latest version of all dll's used by the application and then runs Regsvr32 for each dll. This has always worked for the majority of users but now there are 2 PC's that revert back to an earlier version.
If I check that the latest version is loaded, the answer is yes.
If I run Regsvr32 on that dll, the program makes use of the correct version.
BUT if the PC is shut down and restarted the program makes use of the previous version.
I have run a search for WBSTransaction.dll on all local drives and there is only the one correct version and this is correctly located in the program folder.
This only occurs on these 2 PCs.
Can anyone suggest what I try next?