diff --git a/Driver/Install_Driver.bat b/Driver/Install_Driver.bat index ac9bbcc..3ebbf27 100644 --- a/Driver/Install_Driver.bat +++ b/Driver/Install_Driver.bat @@ -25,7 +25,7 @@ powershell.exe -ExecutionPolicy Bypass -Command ^ $cert = New-SelfSignedCertificate -DnsName PYAS -CertStoreLocation cert:\LocalMachine\My -Type CodeSigning -NotAfter $endDate; ^ $pwd = ConvertTo-SecureString -String 'PYAS' -Force -AsPlainText; ^ Export-PfxCertificate -Cert $cert -FilePath '%script_dir%\PYAS.pfx' -Password $pwd;" -start "" "%script_dir%\signtool.exe" sign /f "%script_dir%\PYAS.pfx" /p PYAS "%script_dir%\PYAS_Driver.sys" +"%script_dir%\signtool.exe" sign /f "%script_dir%\PYAS.pfx" /p PYAS "%script_dir%\PYAS_Driver.sys" sc create PYAS_Driver type= kernel start= demand binPath= "%script_dir%\PYAS_Driver.sys" shutdown -r -t 0 diff --git a/Driver/Uninstall_Driver.bat b/Driver/Uninstall_Driver.bat index 202f4e4..0892348 100644 --- a/Driver/Uninstall_Driver.bat +++ b/Driver/Uninstall_Driver.bat @@ -17,8 +17,8 @@ if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto gotAdmin) sc stop PYAS_Driver sc delete PYAS_Driver -bcdedit -debug off bcdedit /set testsigning off +bcdedit -debug off shutdown -r -t 0 endlocal \ No newline at end of file