Home > Windows Server Tips > Windows Systems and Network Administration > REGSVR32 replacement provides detailed error messages
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

REGSVR32 replacement provides detailed error messages


Serdar Yegulalp, Contributor
12.18.2006
Rating: --- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Most admins have dealt with REGSVR32 at one time or another. It's a command-line tool they can use to manually register COM and COM+ components with a Windows system—DLLs, mainly—and it can also be used as a quick and dirty way to register or deinstall components with Windows.

But one of the drawbacks to REGSVR32 is that it is irritatingly uninteractive: If something goes wrong, it doesn't return much in the way of useful information, so it makes a component registration failure difficult to debug.

Programmer Shawn A. Van Ness decided to do something about this. He wrote a replacement for REGSVR32, called Reggie 1.0, which provides detailed error messages when a component doesn't register correctly. It can also return detailed error codes back to the command line for processing by scripts and batch commands, and it can be re-used freely in an installation kit. (There are no licensing restrictions on the program).

Like REGSVR32, Reggie accepts the name of a component—a DLL, OCX, EXE. TLB or RGS file—as its main argument. For a silent install (meaning no "success" notification), pass the -q switch on the command line; to uninstall a given component, use -u.

Note: Attempting to register an EXE file that is not a COM server will produce an error prompt, and you'll be asked to kill it after several seconds if it is still running.

There are some key differences between Reggie and REGSVR32. For one, you must supply a full pathname to the component in question; Reggie will not search your file path (as specified in the PATH environment variable) for the file. This prevents Reggie from stumbling across and accidentally registering a completely different version of the component that might be somewhere else in the path. Granted, it means that much more footwork, but it also means that much less chance of installing the wrong thing.

Reggie also does not support the DllInstall entry point (which is supported by REGSVR32 via the /i command-line switch), but the author says he might add it in a future release.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter, which is devoted to hints, tips, tricks, news and goodies for Windows NT, Windows 2000 and Windows XP users and administrators. He has more than 10 years of Windows experience under his belt, and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.

More information on this topic:

  • Tip: Unregistered Microsoft Search DLLs can cause problems
  • Topics: Admin tools
  • RSS: Sign up for our RSS feed to receive expert advice every day.

      Rate this Tip
      To rate tips, you must be a member of SearchWindowsServer.com.
      Register now to start rating these tips. Log in if you are already a member.


      Submit a Tip




      Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



      RELATED CONTENT
      Windows Systems and Network Administration
      How to use Group Policy to centralize system configurations
      Troubleshooting Windows application crashes or hangs
      Converting VMware ESX machines to Hyper-V format
      Using DFSR for SYSVOL replication in Windows Server 2008
      Top 25 Windows PowerShell commands for administrators
      Key DFS improvements in Windows Server 2008 R2
      Free Windows security tools every admin must have
      Group Policy makes strides in Windows Server 2008 R2
      Quick tips for troubleshooting NTFS permissions
      Common causes of Windows server security vulnerabilities

      RELATED RESOURCES
      2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
      Search Bitpipe.com for the latest white papers and business webcasts
      Whatis.com, the online computer dictionary

      DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsNewsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts