Path edit from Registry entry - 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!

Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Path edit from Registry entry

Hi,

How can I display a path in a path edit (FolderDlg) I've read from the Registry with Search ?

Thanks,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

There are two cases for this:

1) If you want to use the value from the registry as the installation folder then you need to set the APPDIR property (the property associated with "Application Folder") to the value of the property of the search.

This can be done with a "Property set with formatted" custom action scheduled under the "InstallUISequence" -> "AppSearch" standard action (you can see a standard action by using the "Show standard action" button on the toolbar in the "Custom Actions" page).

2)
If you need to use the value from the registry for something else, then you can create a new Path Edit control on the "FolderDlg" dialog.

In order to show the value from the registry by default, the Path Edit control must use the property of the search. For this, you set the property of the search in the "Property Name" field of the "Properties" section of the path edit control.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Hi,

I've done the 2 option but when I browse and assign a new path I receive an error 2727 !?!?!

Any suggestion ?

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that we have a How-To for this:
http://www.advancedinstaller.com/user-g ... older.html

Let me know if the problem persists after following these instructions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Hi,

Your How-To is related with a Property not a Search Property...

Is it possible to give a procedure with a FolderDlg, Path edit, Search/Registry property ?

TIA,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that a Windows Installer property is used to hold values during an installation. It doesn't matter how this property is set, it matters how it's used.

In our How-To, the property is given a default value in the "Install Parameters" page. Note that this is an example. The property you use can be initialized in any way you want (by a search, with a custom action, by a control event etc.).

Also, just because a property is set by a search it doesn't mean that it is a "Search Property", it is a Windows Installer property.

You can read more about installer properties here:
http://www.advancedinstaller.com/user-g ... rties.html
http://www.advancedinstaller.com/user-g ... rties.html

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

Return to “Common Problems”