muink / UsbBoot-Installer

This program can add UsbBoot suporrt for Windows 7/8/10
GNU General Public License v2.0
6 stars 1 forks source link

UsbBoot-Installer won't run as Administrator. #6

Open Marietto2008 opened 1 month ago

Marietto2008 commented 1 month ago

Hello.

Your UsbBoot-Installer won't run even if I'm administrator. Please give a look at the image below :

Screenshot_1

I'm Administrator :

Screenshot_2

How to fix it ?

muink commented 1 month ago

You can try clone this repo and running installer.bat as administrator. If you are sure you are running in administrator mode, you can remove the following code https://github.com/muink/UsbBoot-Installer/blob/99b200303b87011fa88bd1d3bde5c342bfe38a31/installer.bat#L6

Marietto2008 commented 1 month ago

Why did you add this code ?

net session>nul 2>nul||color 4F&&echo.Please run as Administrator&&pause>nul&&goto END

acoul commented 1 month ago

Why did you add this code ?

net session>nul 2>nul||color 4F&&echo.Please run as Administrator&&pause>nul&&goto END

net session checks that the shell has administration privileges as installer.bat needs them

open an admin dos shell and issue that command to make sure that you do have admin privileges

BTW, I notice that you run win7 under Test mode, so I don't know if this is the cause of your troubles

also be aware that this utility mainly supports the old, classic usb2 stack of win7

if you need newer usb3 support you may check my commit for adding support for a specific usb3 driver

Edit: about the admin check, you may also check this thread