MTCKC / ProconXInput

A Windows user-mode XInput driver for the Switch Pro Controller.
198 stars 29 forks source link

'devcon' is not recognized as an internal or external command #25

Open UglyBastrd opened 6 years ago

UglyBastrd commented 6 years ago

I get the following errors upon launching "install Drivers.bat" as an administrator:

'devcon' is not recognized as an internal or external command, operable program or batch file. 'devcon' is not recognized as an internal or external command, operable program or batch file. 'devcon' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified. Installing HidCerberus.Srv... 'HidCerberus.Srv.exe' is not recognized as an internal or external command, operable program or batch file. The service name is invalid.

This is coupled with the following dialogue box: script

spvn commented 6 years ago

Hey move the folder to C: The bat file is written such that it assumes the procon folder is on the same drive as your OS

AetherCollective commented 6 years ago

The Fix

Replace the following lines in install Drivers.bat to

cd %~dp0
cd Drivers

with this one

cd /d "%~dp0Drivers"

Why this works

While I'm at it...

In uninstall Drivers.bat, change

cd %~dp0
cd HidCerberus.Srv

to

cd /d "%~dp0HidCerberus.Srv"

The easy way

Simply replace your bat files with the ones in this archive file: fixed bat scripts + request admin permissions.zip This included the fixes mentioned above. It also requests admin permission on launch, even if the script was not ran as an admin. Feel free to use these batch files in your next release, @MTCKC.

Zamiell commented 2 years ago

@MTCKC Can we get a new release with this update please?