Check package and install on Max for Live Device load
Hey everyone,
I'm trying to find the information on that topic but can't. Is there any way to check if the required package from package manager is installed on the Max for Live bundled version, and if not - install it?
In Max 9, Packages
is a valid path leading to the Packages folder. This and other special paths are documented here. You can make use of that to list folders in the Packages folder and find if a given package is here or not.
Here is an example patch returning 1 or 0 if a given package name is present or not.
There can be some false positive, as one could have an empty Packages/odot folder, meaning the odot package isn't properly installed, but the patch would still return 1 as the folder exists.
Thanks! And is there a way to install the package by scripts if you know by chance? I'm trying to figure out some way to either include a package in M4L device, or install it in a "dependency" fashion
isn´t it included when freezing the M4L device?
Indeed that's what freezing is for! Maybe OP don't want to include some packages content in their device because of some licensing conflict?
Interesting, thanks! I'm trying to include VIDDLL, but freezing didn't work in my case. I know it should come included in Max8, but for some reason it keeps getting some shenanigans when run on Windows, even if I install the package and freeze after that. Anyway, I'm going to test freezing again, thanks for the answers.
viddll likely won't properly freeze and function from a frozen device state due to the necessary dlls needed for it to function. For windows users of your device, it's probably best to simply tell them to ensure viddll is installed. I don't think there's any way to automagically install packages, but you can open the package in the package manager via the max message ; max packagebrowser viddll