LuWa
Posts: 19
Joined: Tue Jan 11, 2011 9:35 am

Registry Search based on other Property

Hi.

I want to let the User move the Registry-Settings set by the installer into a Folder.

Example:
On the first Dialog i have a TextInput.
The users types in "TEST"
Then i want to read (Search) the registry and wirte the registry in a Subfolder "TEST"

I also want to move the Default APPDIR to APPDIR\TEST

I think my prolbem is, that the SEARCH executes before the user can input the Text.

Is there any Solution?

Regards,
LuWa
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Registry Search based on other Property

Hello LuWa,

Indeed, as you have mentioned, the search is performed before the dialogs are spawned.

A workaround for this would be to have a custom search. For instance, you can create your own custom action which will perform the search.
I also want to move the Default APPDIR to APPDIR\TEST
In what regards this, you can proceed as it follows:

- first of all, it is important that the dialog where the user inputs the text is scheduled before the "FolderDlg"
NewDialog.png
NewDialog.png (162.99 KiB) Viewed 3792 times
- after that, what we can do here is to create an event which will set the APPDIR to APPDIR\<whatever_the_user_inputs>

- to do so, please go to "Dialogs" page --> select "FolderDlg" --> "Init Events" tab and create an event as it follows:
Initevent.png
Initevent.png (17.46 KiB) Viewed 3792 times

where the [EDIT_1_PROP] is the property assigned to the editbox control (I underlined it in the first screenshot).

After doing so, when running the setup, the APPDIR property will correctly be set to the expected value - APPDIR\<user_input>
SomeTest.png
SomeTest.png (22.94 KiB) Viewed 3792 times
FolderDlg.png
FolderDlg.png (25.34 KiB) Viewed 3792 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
LuWa
Posts: 19
Joined: Tue Jan 11, 2011 9:35 am

Re: Registry Search based on other Property

Hi Catalin.

Thanks for your reply.
Your Solution doesn't work for me because i am using the "CustomizeDlg".
Is there any similar solution for this dialog?

Regards,
Lukas
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Registry Search based on other Property

Hello Lukas,

If you do not use the "FolderDlg", then you can get that event and add it to your "CustomizeDlg" dialog.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”