[SOLVED] Problem with multiple 'Key' entries related to a software
Published: January 14, 2019 - 2:57 PM
Good morning,
When I run the line installed_softwares('BIG-IP Edge Client'), I get the following result:
In fact, this is quite normal because the name 'BIG-IP Edge Client' is mentioned twice in the list of software installed on Windows, namely:
- 'BIG-IP Edge Client'
- 'BIG-IP Edge Client Components (All Users)'
When I run the following code:
The result is: F5 Networks Client Components
What I'm interested in retrieving is the second reference key, which is: {6D4839CB-28B4-4070-8CA7-612CA92CA3D0}
How can I retrieve it? Is it possible to limit the search to the mention of 'BIG-IP Edge Client'?
THANKS.
Patrice
When I run the line installed_softwares('BIG-IP Edge Client'), I get the following result:
Code: Select all
[{'install_date': '',
'install_location': u'C:\\Windows\\Downloaded Program Files',
'key': u'F5 Networks Client Components',
'name': u'BIG-IP Edge Client Components (All Users)',
'publisher': u'F5 Networks, Inc.',
'system_component': 0,
'uninstall_string': u'"C:\\ProgramData\\F5 Networks\\f5unistall.exe" /uninstall',
'version': u'71.2018.0808.2011'},
{'install_date': u'20190114',
'install_location': u'',
'key': u'{6D4839CB-28B4-4070-8CA7-612CA92CA3D0}',
'name': u'BIG-IP Edge Client',
'publisher': u'F5 Networks, Inc.',
'system_component': 0,
'uninstall_string': u'MsiExec.exe /X{6D4839CB-28B4-4070-8CA7-612CA92CA3D0}',
'version': u'71.2018.0808.2011'}]- 'BIG-IP Edge Client'
- 'BIG-IP Edge Client Components (All Users)'
When I run the following code:
Code: Select all
for soft in installed_softwares('BIG-IP Edge Client'):
key_uninst = soft['key']What I'm interested in retrieving is the second reference key, which is: {6D4839CB-28B4-4070-8CA7-612CA92CA3D0}
How can I retrieve it? Is it possible to limit the search to the mention of 'BIG-IP Edge Client'?
THANKS.
Patrice