| | |
Install Directory of another program
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 18
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: 18
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 beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






