Hello,

To handle the Shared File feature in Windows, you have to decrement the counter for you file in the following registry key:

HKLM\Software\Microsoft\Windows\CurrentVersion\Sha redDlls\c:\yada\yourfile.dll

You can use the "Get Registry Key Value..." (to read) and the Edit Registry..." (to write) script functions to handle this.

If the counter is 0 (after decrementation), you have to:

1. Unregister the OCX file (you can use the "Unregister File Operations" -> "Unregister OCXs/DLLs/EXEs/TLBs file immediately" script function.

2. Remove the above mentioned key value name (Shared File counter).

3. Delete the file (using the Delete File(s)...) script function. No need to check if the file exists before trying to delete it.

Does this help?

Friedrich