webcamoid / akvirtualcamera

akvirtualcamera, virtual camera for Mac and Windows
GNU General Public License v3.0
376 stars 47 forks source link

AkVcamManager secretly requires administrator prompt to update #8

Closed ayunami2000 closed 3 years ago

ayunami2000 commented 3 years ago

Summary

running AkVcamManager.exe update in non-elevated command prompt fails because of access issues

Current Behavior

normal cmd: AkVcamManager.exe update image log file: image

admin cmd: AkVcamManager.exe update image log file: image

Expected Behavior

At LEAST tell me that it must be run as administrator (btw this is loglevel 7), but preferably make it auto run itself as administrator thus showing the admin prompt

Steps to Reproduce

If akvirtualcamera crashed, try to reproduce the crash several times to be sure where is the problem. Write the steps to reproduce the issue bellow:

  1. normal cmd prompt
  2. add device using AkVcamManager.exe in cmd
  3. AkVcamManager.exe update
  4. check log file it references
  5. oh, it errored! who knew
  6. try with administrator cmd prompt (note: device is still there from before so that must have succeeded i guess)
  7. AkVcamManager.exe update
  8. check log file it references
  9. no error

Suggestions and tips

force the program to show administrator prompt when necessary

Your Environment

NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://www.archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/" LOGO=archlinux

Wine Version: wine-5.21 Windows Version: Microsoft Windows 6.1.7601


* Operating System information: Windows 10 Home 64-bit OS build 19041.630
* Any other useful information: already listed above
hipersayanX commented 3 years ago

At LEAST tell me that it must be run as administrator

I did not documented it yet because is not finished, I'm still working on it :laughing:

(btw this is loglevel 7), but preferably make it auto run itself as administrator thus showing the admin prompt

The manager is supposed to be a full CLI command, if you want to run the command as an administrator you must use the runas command, the same way you use sudo in GNU/Linux, or Mac.

force the program to show administrator prompt when necessary

Nope, this must be done from the client GUI, in CLI you must use runas.

hipersayanX commented 3 years ago

force the program to show administrator prompt when necessary

Nope, this must be done from the client GUI, in CLI you must use runas.

Well, at the end I did :man_shrugging:, I thought runas will trigger the UAC dialog and it did not. Now its possible to run the manager in a normal console, and it will ask for administrator permissions when required.

hipersayanX commented 3 years ago

Closing because solved.