View Full Version : Self-Registering Files: Windows Script Components

06-02-2004, 01:30 PM
Does InstallShield have the capability of setting Windows Script Component Files (.wsc) to be self-registering?

Basically, is there a way to have IntstallShield register these components, like dlls, instead of writing a batch file to regsvr recursively through my directory structure?


David Thornley
06-02-2004, 03:29 PM
Simply mark the file as self registering. The runtime does not do any extension checks. As long as the library exposes DllRegisterServer it will be registered.

06-02-2004, 07:48 PM
I've gone to each component that contains the .wsc files and right click on each, unfortunately the 'properties' selection is not available. Is there another way to mark as self-register? Thanks.

David Thornley
06-03-2004, 08:15 AM
You need to statically link these files into your project to explicitly mark each as self registering. To self-register dynamically linked files you need to set the self-registering property on the dynamic link attributes.

Christopher Painter
10-25-2005, 04:57 PM

This is incorrect. .wsc files are not really dll's so they have no DllRegisterServer function to expose. Regsvr32 knows to call the DllRegisterServer function in scrobj.dll and pass it the path to the .wsc file as an argument. The scrobj.dll then parses the XML header in .wsc file and performs the registraion. InstallShield and MSI has no internal support for registering .wsc files.