The Win32 Self-Registering Files bean (class name Win32SelfRegisteringFiles2
) registers Win32 self-registering DLLs during an installation by launching, in silent mode, a process that executes regsvr32
on each of the DLLs specified in the Win32 Registering Files property. This bean then unregisters them during uninstallation by invoking regsvr32
with the /u
option to unregister the DLLs at uninstall time.
CAUTION: The Win32SelfRegisteringFiles-Deprecated
class has been deprecated and replaced with this bean. The deprecated bean does not handle all of the special considerations involved in installing self-registering files onto Win32 target machines (e.g.., subfolders, locked files, etc.). Rather than put all of that functionality into this bean, the new Win32 Self-Registering Files bean (class name Win32SelfRegisteringFiles2
) has been created that overrides the Files bean and adds these registration functionalities.
The files/directories associated with this bean, including subfolders, locked files, etc., are installed and registered in the sequence in which they are added to the bean (by clicking the "Add" button and selecting either "File" or "Directory"). Uninstallation and unregistration of these files follows the reverse of this same order. If this order must be broken during uninstallation, then the developer needs to manually provide separate actions sequenced in the Product Tree to reflect the necessary installation/registration order of the files when they are originally installed. Since actions are uninstalled in the reverse order that they were installed, the uninstallation/unregistration of these actions results in the reverse order of the install sequence.
For more details, please see the Windows Platform Pack Help, and Win32 SDK documentation that describes how the "regsvr32" executable works.