Using Registry to find stuff

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Using Registry to find stuff

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:33 pm

by Clarrie Pearce >> Wed, 14 Mar 2001 2:16:20 GMT

Has anyone written routines to use 95 / NT Registry to find (for example) whether Adobe Reader is installed and where the .exe resides and its name.

I want to fire up Adobe and pass it a file but need to know where it is / if it is at all.

Thanks Clarrie

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Using Registry to find stuff

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:33 pm

by Craig Shearer >> Wed, 14 Mar 2001 18:52:00 GMT

Perhaps a better way to handle this is to use _shellExecute. Using this, you just tell Windows to open a .pdf file and it knows what application to use to open it.

Then you don't have to worry about where Adobe Acrobat is installed, etc.

Craig.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 29 guests