Registry search returning invalid values - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ishwarjoshi
Posts: 8
Joined: Fri Jun 15, 2007 7:01 pm

Registry search returning invalid values

have created a 'Search' for a registry value which holds the path to a
pre-installed program Adobe Acrobat. (i.e. I am searching whether a program is already
installed on their machine).

Search: ADOBE_SEARCH
Key: Software\Adobe\Adobe Acrobat\8.0\InstallPath
Name: [~]
Type: The value contains a path to a directory

I use this property as the basis of a folder and then placed files inside
that folder. I unchecked the 'create this folder' box.

When I run 'test' on the registry search... it returns a null - which is correct since I don't have it installed.

But when I actually build and run, this registry search does not return a null value but returns F:\ADOBE_SEARCH.

Why is it doing this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Search: ADOBE_SEARCH
Key: Software\Adobe\Adobe Acrobat\8.0\InstallPath
Name: [~]
Type: The value contains a path to a directory
The correct registry key you can use to test if Acrobat Reader is installed is

Code: Select all

SOFTWARE\Adobe\Acrobat Reader\8.0\InstallPath 
But when I actually build and run, this registry search does not return a null value but returns F:\ADOBE_SEARCH.
This happens because you have a property-based folder using the ADOBE_SEARCH property , therefore that property cannot be empty (Advanced Installer automatically assigns a value to it)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ishwarjoshi
Posts: 8
Joined: Fri Jun 15, 2007 7:01 pm

I am trying to search for Adobe Acrobat full version... not Reader.
I want to search for the folder where it is installed and inside that folder are two folders - Javascripts and plug-ins. These are standard folders created by Acrobat if it is installed.
I want to place files inside these existing folders.
If what I am doing is the wrong way, then how can I achieve this objective?
Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can do this by using a folder search in the "Search" page. In the "Path" field you can specify [WindowsVolume]Javascripts for example and in the "Depth" field you can set a one-digit value (for example for C:\Program Files\Adobe Acrobat you can set the depth to 3).

An alternative is to create a registry search for the installation path like you did before and use a prerequisite to make sure that Adobe Acrobat is installed. In this case the RESULT_PROPERTY property will return the path to the Adobe Acrobat installation.

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

Return to “Common Problems”