Is there any way to avoid confirmation when installing a script via PREFS SCRIPTINSTALL?
Something like a silent mode. Or do you think this could be abused by someone?
Is this for an auto-updater or something else?
If you want to automate script installs, copying the file(s) inside the install package to the scripts folder is the easiest way.
Just for a installer than can drop additional files. So copying the script should work, then.
A bit off-topic, but as far as I vaguely remember, there was (or still is) a bug that I've only seen occur when you copied a script as a regular file (like you're suggesting). It created multiple script config entries for the same script, and their values would randomly cycle, making it look like the script was changing its own configuration or not retaining saved settings. If I remember correctly, @galaxyhub and @abr had also reported something similar.
I don't know the steps to reproduce it, but it's only happened to me with scripts I'd copied directly (I stop to do that), although that may just be a coincidence.