dinaiz
1
Hi Jules,
Would it be possible that you change the path, for windows, in :
[code]FileSearchPath VSTPluginFormat::getDefaultLocationsToSearch()
{
#if JUCE_MAC
return FileSearchPath ("~/Library/Audio/Plug-Ins/VST;/Library/Audio/Plug-Ins/VST");
#elif JUCE_WINDOWS
const String programFiles (File::getSpecialLocation (File::globalApplicationsDirectory).getFullPathName());
return FileSearchPath (programFiles + "\\Steinberg\\VstPlugins");
#elif JUCE_LINUX
return FileSearchPath ("/usr/lib/vst");
#endif
}[/code]
by something like
const String programFiles (File::getSpecialLocation (File::globalApplicationsDirectory).getFullPathName());
return FileSearchPath (PlatformUtilities::getRegistryValue("HKLM\\Software\\VST\\VSTPluginsPath",programFiles + "\\Steinberg\\VstPlugins"));
(not tested yet but it should work)
jules
2
Is that an official steinberg registry setting? Ok, I didn’t know such a thing existed, I’ll change that, thanks!
dinaiz
3
Not sure, wether it’s official. I think that’s more a de facto standard but it’s widely used !
Oh…and thanks to you by the way !
Lukasz
4
It would be great if you could also read the 64-bit VSTPluginsPath from
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VST\VSTPluginsPath
and add it as a default path for VST plugins.
jules
5
Surely a 64-bit app will be reading the 64-bit registry by default, so it'll already get the correct value for that?
Lukasz
6
Yeah you're right.
Got I got confused by looking at the wrong values in the registry. I now see that a 64-bit host reads from
HKEY_LOCAL_MACHINE\SOFTWARE\VST\VSTPluginsPath
and 32-bit host on a 64-bit Windows system reads from
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VST\VSTPluginsPath
Sorry for the mix-up :-)