Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change system's registry?

Status
Not open for further replies.

MCH

Programmer
Dec 11, 2000
7
0
0
HK
How to code the program to change system's registry?
eg. register DLL files...
 
If you want to register your own dll then you will want to execute the regsvr32 function.

Go to your start button and click the Run... command. Assuming the name of your dll is myDLL.dll and you stored it in the windows system directory then the command would be as follows:

regsvr32 "C:\Windows\system\mydll.dll"

to unregister a DLL then add the /u parameter

for example,

regsvr32 /u "C:\Windows\system\mydll.dll"

hope this helps.

bye
Jim
 
For the registry api calls, see FAQ 10(f).

But if all you want to do is register DLLs, do like Jim says and call regsvr32. But, IMO, your setup program ought to be doing this. Take a look at the Wise installer, it's pretty good.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top