Tecnos
Posts: 3
Joined: Mon Apr 01, 2013 9:41 pm

Any way to set APPDIR to my own default directory path?

Hi,

I’m setting up an installer which uses a custom search behaviour to search for a directory set in the registry below,

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VST]
"VSTPluginsPath"="C:\\Program Files (x86)\\Vstplugins"

I set the RESULT_PROPERTY to [VST] which I’ve set in the Application Folder and this works just fine. When I run the installer the path is set to C:\Program Files (x86)\Vstplugins

At the moment the installer defaults to C:\APPDIR if the above registry entry is missing, is there any way I can set my own default directory for example C:\Vstplugins?

Cheers,
Chris
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Any way to set APPDIR to my own default directory path?

Hello Chris and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can proceed like this:
- Go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" action group, like this:
  • Property: APPDIR
    Formatted: C:\Vstplugins
    Condition: NOT RESULT_PROPERTY
- Select the above custom action and while keeping SHIFT key pressed drag it under "Install Execution Stage -> Searches" action group.
- Build and run your project.

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

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tecnos
Posts: 3
Joined: Mon Apr 01, 2013 9:41 pm

Re: Any way to set APPDIR to my own default directory path?

Hi,

I’ve tried out the above but the installer still defaults to C:\APPDIR when the registry entry is missing.
I’ve attached my test project file and the registry file if you could kindly test out my project and diagnose the problem.

Best regards,
Chris
Attachments
test_project.zip
(116.27 KiB) Downloaded 331 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Any way to set APPDIR to my own default directory path?

Hello Chris,

This happens because your "Set installer property" wasn't added under "Wizard Dialogs Stage -> Searches" action group too.

Here's attached your edited project which implements your scenario.
test_installer.zip
(2.47 KiB) Downloaded 515 times
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tecnos
Posts: 3
Joined: Mon Apr 01, 2013 9:41 pm

Re: Any way to set APPDIR to my own default directory path?

Hi Daniel,

Thanks for that, all works fine now. Great product by the way ;)

Best regards,
Chris
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Any way to set APPDIR to my own default directory path?

You're welcome. I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”