BaseHead
Posts: 12
Joined: Tue May 28, 2013 10:10 am

Registry Question

Hey!
great product....but what is the syntax to create a registry entry that follows a user selected Install path in case they change from the default one during install?

So by default the path would be something like this
C:\Program Files (x86)\MyProgram\Device.dll
I know how to make that work

but what if the user chooses the install directory to be be something different like.......
E:\Audio Programs\MyProgram\

how do we make the registry write this path instead?
E:\Audio Programs\MyProgram\Device.dll

thx!!

Steve
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Registry Question

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve that, you can use the “path” registry value which is a registry by default added in Advanced Installer's projects. For example when you create a project in Advanced Installer, in “Registry” page it is automatically added a “Path” registry value which contains in “Data” field the [APPDIR] property value which is the value of the path folder where your application is installed.

You can add a new registry just like the one is added by default in Advanced Installer and in the “Data” field you can have a reference to a file, folder or property.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BaseHead
Posts: 12
Joined: Tue May 28, 2013 10:10 am

Re: Registry Question

Hey!

thx for the reply...
I got it working but it keeps putting it in
SOFTWARE/Wow6432Node/Propelllerhead Software/ReWire/BaseHead/

when I tell it to go into
SOFTWARE/Propelllerhead Software/ReWire/BaseHead

why is it putting it there?
I actually need to put another key there instead

thx!

Steve
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Registry Question

Hello,

This is the default behavior on a 64 bit Operating System.

If you want your registry entries not to be installed under the "Wow6432Node" you can go in the "Organization" page, select the component related to your registry and check the "64-bit Component" option.
why is it putting it there?
This is the default behavior when installing a 32-bit package type on a 64-bit Operating System.
The registry value will be installed in the 32-bit registry section.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”