Page 1 of 1

Checking for install path ?

Posted: Sun Oct 28, 2018 12:21 pm
by lalalandsynth
Can I have the plugin check where it is installed ?
Say if someone does not use the default Steinberg/VStplugins folder but something else.
Can I have the plugin know where it is installed and get the folder name ?

There is the Folder primitive just not sure if it writes where I install the plugin when exporting or if it can read where it installed on any computer ?

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 12:35 pm
by lalalandsynth
It appears that the folder prim can only know where it has been exported rather then know where it resides if moved or installed into a different folder then the export folder . At least that is what it looks like.

I wonder if there is a way for the plugin to check where it is installed ?

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 12:43 pm
by lalalandsynth
What I need to do is have the plugin find a folder with envelope shapes regardless of the install path .
I could use the Sysfolders Prim and put the envelopes in the roaming folder but I am not sure if the Prim "gets" the folder on startup of the plugin as there is no "do it" trigger , so wondering if it only works within FS or also in an installed plugin? Or indeed if it finds the system folder specific to each user or just on my computer ?

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 1:18 pm
by lalalandsynth
After some testing it seems that the systems folder prim works .

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 1:29 pm
by adamszabo
check the Schematic File Path primitive. It will output the location where the .dll vst resides

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 2:43 pm
by lalalandsynth
Does that not just show me where the schematic itself is located rather then the vst itself ?
Does so in FS at least.

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 3:29 pm
by lalalandsynth
I think this is solved by using the System folder prim and then install presets and Envelope shapes into a folder at Appdata/roaming.

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 6:28 pm
by adamszabo
lalalandsynth wrote:Does that not just show me where the schematic itself is located rather then the vst itself ?
Does so in FS at least.


If you export it to vst, it will output the location of the vst dll files

Re: Checking for install path ?

Posted: Sun Oct 28, 2018 7:21 pm
by lalalandsynth
Cool, trying it out.