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!

DuncanL
Posts: 12
Joined: Fri Oct 21, 2005 11:26 am

Read registry value into property?

Not used Advanced Installer for some time and I'm having some difficulty replicating functionality that is simple in our normal Win32 installer, but seems more difficult in MSI form.

I want to install some files into a folder that is specified in the registry.

I've found that I can install files to a folder based on a property, so the question how can I read a string from the registry into a custom property?

Many thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

First you need to create a registry search in the "Search" page. The search result is stored by default in the "RESULT_PROPERTY" (you can change its name in the left tree).

Now in the "Files and Folders" page create a property based folder ("New Folder->Property Based") using this property.

Additionally you can create a launch condition (use the wizard from main menu) to stop the installation in case the registry search fails.

For a similar approach take a look here:
http://www.advancedinstaller.com/forums ... try+search

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
DuncanL
Posts: 12
Joined: Fri Oct 21, 2005 11:26 am

Excellent - many thanks. That also answers my second question, which was going to be how to install the file conditionally based on the result of the key. You must be psychic! :D

Thanks again.
DuncanL
Posts: 12
Joined: Fri Oct 21, 2005 11:26 am

Actually - that doesn't quite solve it, since that would stop the whole installation, which is not what I want.

As part of our product we have a browser plugin that needs to be installed for multiple different web browsers, but obviously only if they are present on the system.

So what I want is to be able to just install a file (or not), depending on whether a property has any value or not. This shouldn't affect the rest of the install in any way.

Any suggestions? Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
So what I want is to be able to just install a file (or not), depending on whether a property has any value or not. This shouldn't affect the rest of the install in any way.
Every file resides in a component. Use the "Go To Component" option from the file context menu to view this component in the "Organization" page.

Conditioning this component (with the result of a property), the file will be installed or not depending on the condition evaluation result.

http://www.advancedinstaller.com/user-g ... ation.html

Let me know if you encounter any problem.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
DuncanL
Posts: 12
Joined: Fri Oct 21, 2005 11:26 am

Brilliant - thanks again for your assistance.

I don't seem to have a "Go To Component" option on my contest menu (assuming you mean in the "Files, Folders and Shortcuts" page). Is this only in a newer version than 3.9? I managed to find the files by manually searching.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is this only in a newer version than 3.9?
The "Go To Component" feature was added with the 4.2 version of Advanced Installer.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”