jasonhudgens1
Posts: 5
Joined: Sat Jan 18, 2020 3:37 pm

Read installation path from Registry

Hello everybody
I have a question.
My installation includes plugins (dll's and some xml's). I have to store these plug-in files in an already installed software folder. Since the user can determine the installation path for this software, I want my installation setup to automatically recognize where the software was installed. The installation path of the software is written in a registry entry.
So my installer should read this path and put certain folders / files in there.

Also User Permissions should be able to be adapted to the software folder.

Is there an easy way to do this?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Read installation path from Registry

Hello Jason,

You could achieve this through a search.

For instance, you can create a "Registry Search" in the "Search" page.

After doing so, you can go to "Files and Folders" page and create a new property-based folder. To do so, please right click on the "Application Folder" --> "New folder" --> "Property based". In the newly spawned dialog, please select the property that stores the value of your search (the path taken from the registries).

The last step would be to put your files in the property-based folder. This way, your files will be installed in your desired location.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jasonhudgens1
Posts: 5
Joined: Sat Jan 18, 2020 3:37 pm

Re: Read installation path from Registry

Great! Thanks a lot it works!
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Read installation path from Registry

You are always welcome, Jason!

I am really glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shoaibmughal84
Posts: 3
Joined: Sat Aug 12, 2023 9:59 am

Re: Read installation path from Registry

Hi,

I have got a follow up question to this thread. I am new to the Advanced Installer. I can see where to create the Poperty Based folders but how do I create a property based on registry search. I have a installation path location stored on in my registry key. I need to read that information (i.e. the target folder path) and then use it as the installation directory. Any help please?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Read installation path from Registry

Hello and welcome to our forums,

The result of a search is saved by default in a property (the property has the same name as the search).
Screenshot_38.png
Screenshot_38.png (5.31 KiB) Viewed 5174 times
In the above case, the search's property is RESULT_PROPERTY.

You can create a property based folder using the name of the property.

Hope this helps!

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

Return to “Building Installers”