Windows – Can i get Source Path of Installed application

windowswindows-registry

is there any way to know that form which path an application was installed.

for example I have firefox.exe in

D:\Downloads\App\firefox.exe

and when I install it, it is installed in

C:\Program Files\Firefox

but for some reason I need path from where Firefox was installed. that is "D:\Downloads\App\".

like if this path is stored in some registry value? or in some other system variables? is there any way to get that path? I would like to get that path and then store it in some text file

Best Answer

Some installs will create a registry key 'InstallSource' with the uninstall information here:

HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*\ HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*\

For example:

...\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}\InstallSource = c:\22e11d77ed4216e686b789\
...\Uninstall\{343D4507-997F-4553-9F86-2BB81F19A05E}\InstallSource = C:\WINDOWS\ccmsetup\{72875A95-4007-4DAC-88D8-66366F9A5045}\