Is there a option to install plugins unattended? Using command line?
No. Other than manually (or using a script) copying DLLs and files into the appropriate location…which is all the PluginManager does.
Even setting allowAppDataPlugins.xml some files still needed to put into main directory under Program Files
This is true although the majority of plugins are perfectly fine using the app data directory.
Or should we grant rights for users to NPP main dir?
That’s completely up to you.