| | |
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 c++ c/c++ char class classes classified code coding compatible compile console conversion count date delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file filewrite forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper homeworksolutions iamthwee icon if...else ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node object output play pointer problem program programming project python random read recursion reference rpg string strings struct symbol temperature template test text text-file toolkit tree url values variable vector video win32 windows winsock wordfrequency wxwidgets






