Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFind location of program. Check registry? Pin
ChemmieBro2-Feb-05 3:03
ChemmieBro2-Feb-05 3:03 
AnswerRe: Find location of program. Check registry? Pin
David Crow2-Feb-05 3:18
David Crow2-Feb-05 3:18 
ChemmieBro wrote:
1. Check the registry, or some other method, to find which drive the program is installed on.

Without knowing any more about the program or how many assumptions can be made, this would require a search of each potential disk in the system.

You can always search the registry in lieu of the disk(s) but there is no guarantee that it will be any faster. If you knew that the program was installed somewhere under the C:\Program Files folder, or in one particular hive of the registry, it would help.

ChemmieBro wrote:
2. Check to see if a certain folder, on that drive, exists.

I've always used _access(..., 0) for this.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Find location of program. Check registry? Pin
ChemmieBro2-Feb-05 3:25
ChemmieBro2-Feb-05 3:25 
GeneralRe: Find location of program. Check registry? Pin
David Crow2-Feb-05 3:35
David Crow2-Feb-05 3:35 
GeneralWant to capture Event from MS Web browser (shdocvw.dll) Pin
Jetli Jerry2-Feb-05 2:54
Jetli Jerry2-Feb-05 2:54 
General"Open Directory" window Pin
TheCult2-Feb-05 2:31
TheCult2-Feb-05 2:31 
GeneralRe: "Open Directory" window Pin
David Crow2-Feb-05 2:37
David Crow2-Feb-05 2:37 
GeneralRe: "Open Directory" window Pin
TheCult2-Feb-05 2:44
TheCult2-Feb-05 2:44 
GeneralToolbar Peformance Problem Pin
Jnewg52-Feb-05 2:04
Jnewg52-Feb-05 2:04 
GeneralToolbar... help needed Pin
Feroz R2-Feb-05 1:19
Feroz R2-Feb-05 1:19 
GeneralUnicode Support Pin
Feroz R2-Feb-05 1:17
Feroz R2-Feb-05 1:17 
GeneralRe: Unicode Support Pin
David Crow2-Feb-05 2:29
David Crow2-Feb-05 2:29 
GeneralRe: Unicode Support Pin
PJ Arends2-Feb-05 4:52
professionalPJ Arends2-Feb-05 4:52 
Generalbitmap Pin
stew9ln1-Feb-05 23:34
stew9ln1-Feb-05 23:34 
GeneralADO IN VC++ Pin
ivax1-Feb-05 23:33
ivax1-Feb-05 23:33 
GeneralHelp! About the scrollbar of WebBrowser Pin
shoulderlll1-Feb-05 21:40
shoulderlll1-Feb-05 21:40 
GeneralCString::GetBuffer(-1) Pin
xcavin1-Feb-05 21:37
xcavin1-Feb-05 21:37 
GeneralRe: CString::GetBuffer(-1) Pin
2249171-Feb-05 21:53
2249171-Feb-05 21:53 
GeneralRe: CString::GetBuffer(-1) Pin
David Crow2-Feb-05 2:33
David Crow2-Feb-05 2:33 
GeneralDLL Memory Usage Pin
KoderProject1-Feb-05 20:49
sussKoderProject1-Feb-05 20:49 
GeneralRe: DLL Memory Usage Pin
David Crow2-Feb-05 2:36
David Crow2-Feb-05 2:36 
GeneralUNICODE Problem Pin
lisoft1-Feb-05 20:09
lisoft1-Feb-05 20:09 
GeneralRe: UNICODE Problem Pin
Maximilien2-Feb-05 0:38
Maximilien2-Feb-05 0:38 
GeneralRe: UNICODE Problem Pin
Blake Miller3-Feb-05 6:43
Blake Miller3-Feb-05 6:43 
GeneralBring the application to system tray Pin
surend2k1-Feb-05 19:29
surend2k1-Feb-05 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.