eandersen
Posts: 12
Joined: Fri Nov 28, 2008 7:24 am

Registry search for main folder of another Product

Is it possible to make a registry search for the main folder of another installed product? I need the folder to be able to insert my files into the other product's folder structure. I have a VB script that can search the registry for this but I'm hoping you have a standard way of doing this. The VB script stores the folder name in a property and this property is used when adding a 'property based folder'.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Registry search for main folder of another Product

Hi,

In order to find a registry entry you can use a search. If the other product is a MSI which was registered with Windows Installer, you can retrieve its installation path from this registry value:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<PackageCode>\InstallLocation
After the search is configured to retrieve the path, you can use its property for the property-based folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”