reading install folder from registry - Advanced Installer Community
tony_strong
Posts: 2
Joined: Mon Mar 11, 2013 6:13 pm

reading install folder from registry

We have created an installation that installs files to the c:\program files\xxxx\yyyy folder yet the user MAY change this, so we store the actual path in a registry key: HKLM/software/cadaptor solutions/myapp

We now wish to install more software to sub folders of this original folder using a second installer program, I do not want to use the patch option, as this requires the original MSI to be present, and this may not be possible in all cases.

How do I read the registry value at install-time and set this as the folder to install the new files to?

Thanks

Tony
new user - and learning slowly!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: reading install folder from registry

Hi Tony,

In order to achieve what you want you can follow the steps below:
- go in the Search page and create a new search using the [Search] toolbar button, then use the [Search Location] toolbar button and choose "Registry" (you can rename this search: i.e. MY_PATH)
- in the right pane write the key and the value that contain the path that you want to use (c:\program files\xxxx\yyyy)
- go in the Install Parameters page and in the "Application Folder" text field write the name of your search (i.e. [MY_PATH])

You can do all this steps in the packages that you want to install to the path of the first installed software.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”