DelphiFAQ Home Search:
General :: Windows
General Windows topics. User shortcuts, installation/ destallation, compatibility, registry entries, power user and undocumented features.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Register (install) a DLL on Windows from the command line?

Question:

How can I register (install) a DLL on Windows from the command line?

Answer:

It is possible that your application requires this DLL to be on the search path. In this case you could move it to \Windows\System32
Or the application requires it to be in the application directory.

Now to register it, you need to move to the directory where the DLL is located and use the commandline tool RegSvr32. This tool should be on your search path (in \Windows\System32).

At the command prompt do the following:

// to register it:
 regsvr32.exe  MyLibrary.dll
 
 
 // if you don't like the dialog box popping up afterwards:
 // option /s means 'silent'
 regsvr32.exe /s MyLibrary.dll
 
 
 // if you want to unregister (uninstall) it later:
 regsvr32.exe /u MyLibrary.dll
 
 // silent version
 regsvr32.exe /u /s MyLibrary.dll
 

Generated 0:02:36 on Dec 13, 2017