Read/write to Registry (6.1.1) - 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

Read/write to Registry (6.1.1)

Hi Support,

1. Is it possible to read a value from the Registry and assign it to a Property defined in Install Parameters to finally show it in a custom Path Edit control ?

1. Is it possible to write in the Registry the value of the custom Path Edit control mentioned in point 1. above ?

Thanks,

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

Hi,
Is it possible to read a value from the Registry and assign it to a Property defined in Install Parameters to finally show it in a custom Path Edit control ?

A registry entry can be read and stored in a property by using a search. Note that you don't need to initialize the property of the search because it will be set by the search itself.

You can read more about the "Search" page here:
http://www.advancedinstaller.com/user-guide/search.html
Is it possible to write in the Registry the value of the custom Path Edit control mentioned in point 1. above ?
This can be done by using the "Registry" page. For example, if you want to write the value of the APPDIR property into a registry value then you simple use [APPDIR] in the "Data" field of the registry value (in the "Edit registry entry" dialog).

You can read more about the "Registry" page here:
http://www.advancedinstaller.com/user-g ... istry.html

Regards,
Cosmin[/quote]
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

Thanks !
cosmin wrote:Hi,
Is it possible to read a value from the Registry and assign it to a Property defined in Install Parameters to finally show it in a custom Path Edit control ?

A registry entry can be read and stored in a property by using a search. Note that you don't need to initialize the property of the search because it will be set by the search itself.

You can read more about the "Search" page here:
http://www.advancedinstaller.com/user-guide/search.html
Is it possible to write in the Registry the value of the custom Path Edit control mentioned in point 1. above ?
This can be done by using the "Registry" page. For example, if you want to write the value of the APPDIR property into a registry value then you simple use [APPDIR] in the "Data" field of the registry value (in the "Edit registry entry" dialog).

You can read more about the "Registry" page here:
http://www.advancedinstaller.com/user-g ... istry.html

Regards,
Cosmin
[/quote]

Return to “Common Problems”