If the VLX only has only one FAS, then it is easier to pack the FAS into VLX by adding simple header and footer, however, when you have multiple FAS files or DCL or other resource files need to be packed in VLX, I didn't see any way to do it programmingly. On AutoCAD 2021+, you may try using makelispapp command to get vlx from prv but in lower version, there is no way but VLIDE's menu.