Frosthaven / voicemeeter-windows-volume

Tray app that allows you to sync windows volume and mute state to Voicemeeter volume controls
303 stars 13 forks source link

Autostart as admin #31

Open atwk opened 2 years ago

atwk commented 2 years ago

Can you adjust the script to let VMWV start as admin with standard users? With app-launcher.vbs in autostart I don't manage to give admin rights and with VMWV.exe in autostart VMWV doesn't start.

I installed VMWV on my kids' PCs because only VMWV allows Logitech keyboards to control Voicemeeter via jack while streaming their game to the living room via HDMI. But Windows UAC asks for the admin password at every startup.

ebug64 commented 1 year ago

I second this request. Also, sometimes it doesn’t launch at Start and I’m wondering if this is why and I’m not getting a UAC pop up.

Frosthaven commented 1 year ago

There are currently a couple of reasons for the admin requirement:

  1. Grant access to the task scheduler
  2. Grant the ability to launch the application with a hidden window (it's technically a console app)
  3. Change process priorities and core configurations (for the usb crackle fix)

I can likely decouple the task scheduler into it's own elevated prompt that asks permissions only when setting auto-startup options. As for the second point, there are much more modern ways to launch applications hidden using PowerShell that do not require the elevated permissions. The third point I'll need to think about a bit.

I'll take a look in the coming week, but I feel like I may be able to remove the admin requirement altogether and do away with the .vbs launchers in the same stroke - and then work out something for point #3. If not, then an alternative startup could probably be made to work in your configuration.

I'll update this ticket when I look at it. Until then, just speculating out loud :)