0

I'm trying to extract file location using winapps but the result is always None

 from winapps import *
 name="Microsoft Edge"
 cc=InstalledApplication(name)
 vv=cc.install_location
 print(vv)
Community
  • 1
  • 1
  • `"Microsoft Edger"` or `"Microsoft Edge"`? – Dan Jun 15 '20 at 16:52
  • BTW, I would probably figure this out by looking at the source code to the `winapps` library, and determining how it determines installed location. If it's a registry key, for example, does Edge fill that key out? If not, `None` may be legitimate. (Frankly, if Microsoft installs an application as part of the system, and doesn't permit its location to be customized, it seems completely legitimate to not fill in an install location). – Charles Duffy Jun 15 '20 at 16:55
  • 1
    I'm not familiar with this library, but this doesn't look like the intended usage -- `InstalledApplication` should be instanciated by the library. You might try inspecting the result of `winapps.search_installed('Edge')` or `winapps.list_installed()`. – chash Jun 15 '20 at 17:00
  • @CharlesDuffy I tried that but library is too complex –  Jun 15 '20 at 17:03
  • 2
    The [winapps readme](https://github.com/rominf/winapps/blob/master/README.md) shows that an empty `install_location` is common. Windows subsystems have changed over the years and an application built for one type may be emulated on another. Like the "windows on windows" WOW stuff where different windows registry rules for applications try to be compatible with each other. – tdelaney Jun 15 '20 at 17:03
  • ...my guess is that his tool doesn't support all of the registry keys where this info is recorded. it may be worth contacting the developers. – tdelaney Jun 15 '20 at 17:04

0 Answers0