Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi, im working on a personal project that opens other programs and currently I am using a text file where I have to manually enter the path to the exe file like this
C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe

I wanted to know is there a way to get a list of all the locations of exe files? I know that how to get a list of the installed programs and somewhat of the file path using

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*

but it doesn't really give the whole path.

What I have tried:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
Posted
Updated 16-Feb-19 22:33pm

1 solution

You can only get what the installer has put in the registry. But not all programs will necessarily have a proper registry entry. You can also look in the Start Menu folder in the APPDATA trees for all users.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900