From 72ce9cfd6b92eb01ecaf2ea962eb73b1676d2ab1 Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:35:18 +0800 Subject: [PATCH] Add files via upload --- Driver/Install_Driver.bat | 2 +- Driver/Uninstall_Driver.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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