There is no way to configure Arduino IDE so that the drivers will not be installed when the user installs the "Arduino AVR Boards" platform via the Arduino IDE Boards Manager.
But if you configure your script to preinstall Arduino AVR Boards on the machine in addition to the drivers, then the user won't need to install it, and thus the UAC prompt will be avoided.
If the location where the boards platform is installed poses a problem for doing this, it is possible to configure Arduino IDE to use a different location. I can provide information about doing that if it will be useful to you.
I exactly have your problem.
I just read most of the "silent installation" arctiles of the last years and none of them could help. Like these:
We want to distribute Arduino 2 to nearly 2000 Windows Clients.
We are still using the old version 1.8.9 because we have not managed to successfully distribute it to the clients since the release of version 2. We distribute almost 1000 different software products on the clients via Microsoft Softwarecenter.
In our company, as in many larger companies, the users do not have admin rights. Users can only install software via the Microsoft Software Center. Automatic updates are switched off for all software products and are carried out centrally by us.
Regardless of whether we are currently using the EXE or MSI, whether ALLUSERS or MSIINSTALLPERUSER or changing WixAppFolder from "WixPerUserFolder" to "WixPerMachineFolder" or other parameters, script versions or anything else. We simply cannot manage to install the software for all users.
I then tried using Orca and Admin Studio Tuner to create an .MST or customize the MSI tables, but these options were also unsuccessful.
I have the same scenario as you. I'm trying to deploy the application for three school labs using a script. However, the problem is that when students and teachers launch the application, they constantly receive UAC prompts to reinstall the drivers. I was wondering if you found a solution to share with me; it would be greatly appreciated.