Skip to content

Register a shared file

This action lets you register the specified file with Windows as a shared legacy file. Shared means that this file may be used by different applications, and consequently should be removed with care.

It uses the Windows' shared file counting feature (located in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs). Each time the file is registered, the reference count for the file is incremented. When an application using the file is removed, the reference count is decremented. If the count reaches zero, the file is deleted.

Property Name Data Type Description
AddUninstReference Boolean If true, the package will add a reference to this file in the uninstaller log file. The file will be then removed only if no more used.
SharedFilename String Full path to the file you want to register as shared. For example %SYS%\Mydll.dll

All available actions