Regrgs.exe: Adds Entries to the Registry Using RGS File

ID: Q220836


The information in this article applies to:
  • The Microsoft Active Template Library (ATL) 3.0, included with:
    • Microsoft Visual C++, 32-bit Editions, version 6.0


SUMMARY

Regrgs.exe is a sample that can be used to register information stored in a registrar script file (RGS). RGS files are created by the ATL wizards. This sample might be useful in the case of DCOM. You can register the server on the client machine even though the DLL/EXE resides on a different machine.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


Regrgs.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.


Regrgs.exe is a command line tool that takes the following format:

REGRGS [/?] [/s] [/u] [/c] FILENAME.RGS [Replaceable Parameter="Value"] 

Arguments in square brackets [ ] are optional.

/? - Displays a help dialog.
/s - Silent mode.
/u - Performs unregistration.
/c - Console output.

Replaceable Parameter - Anything in the RGS file surrounded by % (percent sign) is a replaceable parameter. For example, %MODULE%.

Value - You must provide a value for replaceable parameters. For example, to register an RGS file that contains %MODULE% using REGRGS.EXE:

REGRGS.EXE  MYOBJECT.RGS  MODULE="c:\Program Files\myobject.dll" 
Full source code is included in the self-extracting file.

Additional query words:

Keywords : kbfile kbsample kbActiveX kbCOMt kbRegistry kbVC600 kbATL300 kbGrpMFCATL
Version : WINDOWS:3.0
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.