Check package and install on Max for Live Device load

Uasmi Nasser's icon

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?

TFL's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

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.

Uasmi Nasser's icon

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

double_UG's icon
TFL's icon

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?

Uasmi Nasser's icon

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.

Rob Ramirez's icon

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