Hi Praveen,
I preffer a way that does not execute Matlab code. I unzipped the "MatlabCompiler.mlsettings" file and edited the settings.json within. That was way easier to integrate into the setup routine since all of it can be done using a loop in cmd
KR, Fabian