# VST default location

**URL:** <https://forum.juce.com/t/vst-default-location/7768>\
**Category:** Windows\
**Created:** [November 24, 2011, 3:08pm UTC](https://forum.juce.com/t/vst-default-location/7768 "2011-11-24T15:08:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinaiz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dinaiz/32/182_2.png) [@dinaiz](https://forum.juce.com/u/dinaiz)\
**Post date:** [November 24, 2011, 3:08pm UTC](https://forum.juce.com/t/vst-default-location/7768/1 "2011-11-24T15:08:02Z")

</div>

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

```auto
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)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 24, 2011, 5:17pm UTC](https://forum.juce.com/t/vst-default-location/7768/2 "2011-11-24T17:17:04Z")

</div>

Is that an official steinberg registry setting? Ok, I didn’t know such a thing existed, I’ll change that, thanks!

---

<div class="post-metadata">

**Author:** ![dinaiz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dinaiz/32/182_2.png) [@dinaiz](https://forum.juce.com/u/dinaiz)\
**Post date:** [November 24, 2011, 6:18pm UTC](https://forum.juce.com/t/vst-default-location/7768/3 "2011-11-24T18:18:30Z")

</div>

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 ! 😃

---

<div class="post-metadata">

**Author:** ![Lukasz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lukasz/32/276_2.png) [@Lukasz](https://forum.juce.com/u/Lukasz)\
**Post date:** [September 26, 2013, 11:02am UTC](https://forum.juce.com/t/vst-default-location/7768/4 "2013-09-26T11:02:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 26, 2013, 11:08am UTC](https://forum.juce.com/t/vst-default-location/7768/5 "2013-09-26T11:08:21Z")

</div>

Surely a 64-bit app will be reading the 64-bit registry by default, so it'll already get the correct value for that?

---

<div class="post-metadata">

**Author:** ![Lukasz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lukasz/32/276_2.png) [@Lukasz](https://forum.juce.com/u/Lukasz)\
**Post date:** [September 26, 2013, 1:36pm UTC](https://forum.juce.com/t/vst-default-location/7768/6 "2013-09-26T13:36:45Z")

</div>

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 :-)
