c# - How to get Adobe Reader full path(including executable file name)? -


it's possible? need full path of adobe reader including executable name. i'm looking on windows registries, closer did found full path without executable name. in advance.

my code:

var adobe = registry.localmachine.opensubkey("software").opensubkey("adobe").opensubkey("acrobat reader"); var version = adobe.getsubkeynames().first(); var path = adobe.opensubkey(version).opensubkey("installer").getvalue("path"); 

thanks in advance.

one of these should you:

    var adobe = registry.localmachine.opensubkey("software").opensubkey("microsoft").opensubkey("windows").opensubkey("currentversion").opensubkey("app paths").opensubkey("acrord32.exe");     var path = adobe.getvalue("");      var adobeotherway = registry.localmachine.opensubkey("software").opensubkey("classes").opensubkey("acrobat").opensubkey("shell").opensubkey("open").opensubkey("command");     var pathotherway = adobeotherway.getvalue(""); 

pick 1 , run ;)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -