Using script or even Swift app, how on MacOS could I install an app into the /System/Applications?

So nowadays my MacOS software uses an installer (http://s.sudre.free.fr/Software/Packages/about.html Packages) and it is able to correctly install the application.

My client needs to have a quiet installer because he needs to install the app in a large number of computers so using the interactive mode is not good.

I am trying to create a script to do that but I am facing the Read-only file system error. Of course my script runs as root. I tried creating a simple Swift code to check, I got the same.

So my question: why an installer such Packages can create the folder into the /System/Applications and copy the required files as it runs at the same level of the script and my test program and them don't have the same permission?

My client needs to have a quiet installer because he needs to install the app in a large number of computers

Are these machine managed with MDM?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Using script or even Swift app, how on MacOS could I install an app into the /System/Applications?
 
 
Q