Automatically locate .ch1 monolith files in a custom folder on first plugin launch
-
Hi everyone,
I'm developing a VST plugin with HISE and I'm trying to distribute the sample monolith files (.ch1) separately from the plugin.
My current setup is:
-
The plugin is exported as VST3.
-
The .ch1 monolith files are copied to a custom user data folder, for example:
%APPDATA%\MyCompany\MyPlugin\Samples
The plugin is built using Sample Monoliths.
The issue is that when the plugin is opened for the first time, HISE still searches for the .ch1 files in my original HISE project folder (inside the HISE project directory) and asks the user to manually locate the Samples folder.
I would like the plugin to automatically search for the monolith files in my custom AppData folder, so the user can open the plugin immediately after installation without having to manually locate the samples.
Is there a recommended way to define a custom default sample location in HISE?
Can this be done through Project Settings, scripting, or by changing the sample search path during initialization?
Any help or examples would be greatly appreciated.
Thanks!
-
-
@lijas90 your installer needs to create/write to the Link file in the %APPDATA% folder with the path to your samples. so on Windows this is LinkWindows, on MacOS its LinkOSX.
As an aside putting samples in the %APPDATA% folder system, as you are doing, is generally a bad idea, esp. for Windows users who often have small C; drives (where the %APPDATA folder resides) as thus there is not enough room for the sample set. Better to ask the end user where they want to keep their samples during the install.