| | |
Install Directory of another program
Thread Solved
![]() |
•
•
Join Date: Nov 2008
Posts: 17
Reputation:
Solved Threads: 0
how would I get the install directory of another program, the registry perhaps? (using HLDS as my directory to be found) (GET HLDS HERE!)
i fond the key which might be useful. (how would i open it?
i fond the key which might be useful. (how would i open it?
C++ Syntax (Toggle Plain Text)
[HKEY_CURRENT_USER\Software\Valve\HLServer] "InstallPath"="C:\\hlds" "Full Name"="Half-Life Dedicated Server" "Region"="5"
Last edited by maxicube; Nov 21st, 2008 at 10:08 am.
•
•
Join Date: Nov 2008
Posts: 17
Reputation:
Solved Threads: 0
heh. didnt help me that much :/ but dad had some code for me
C++ Syntax (Toggle Plain Text)
HKEY hKey; DWORD buffersize = 1024; char* hldsloc = new char[buffersize]; RegOpenKeyEx (HKEY_CURRENT_USER, "Software\\Valve\\HLServer",NULL,KEY_READ,&hKey); RegQueryValueEx(hKey,"InstallPath",NULL,NULL,(LPBYTE) hldsloc,&buffersize); RegCloseKey (hKey);
![]() |
Similar Threads
- Cannot Access Control Panel (Windows NT / 2000 / XP)
- can't access control panel (Viruses, Spyware and other Nasties)
- Finding directory of VB project dynamically (Visual Basic 4 / 5 / 6)
- How can I get a Program to Self Install itself in a given Directory? (C++)
- Which components of Visual C++ should i install (C++)
- nightmare trying to install windows (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Help... Link list problem
- Next Thread: Convert Binary to Decimal and from Decimal to Binary
| Thread Tools | Search this Thread |
api array based binary bitmap build c++ c/c++ char class classes client code coding compile console conversion count counttheoccurenceofanintegerinthe10inputs delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption environment error file forms fstream function functions game givemetehcodez graph gui homeworkassignment homeworkhelp homeworkhelper i/o iamthwee ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple multipledimensionarray news node number numbers numbertoword output parameter pointer problem program programming project python radix random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets






