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!

Registry?

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hello

I need to be able to add an item the add/remove programs list in the control panel. How can I go about this?

Also I need to add a shortcut to the desktop and the start menu. Any ideas?

Thanks
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UnInstall\Your Application Name]
"DisplayName"="Your Application Name"
"UninstallString"="C:\\program files\\mspclnt\\setupbin\\Your_Application_Setup"

To write-read from registry use RegOpenKey,RegQueryKey RegCloseKey & others from ADVAPI32.DLL

This works on Win9x, WinNT and Win2000 as far as I know,

Hope this helps,
s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
I've had a look at the RegCreateKeyEx function but it said I could not create a key under LOCAL_MACHINE. How can I get around this? I need to put information in the uninstall directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top