Add installation scripts.

This commit is contained in:
Nodir Temirkhodjaev 2014-12-30 18:07:40 +05:00
parent db617151c9
commit 17852cf2a5
6 changed files with 36 additions and 0 deletions

12
bin/install.cmd Normal file
View File

@ -0,0 +1,12 @@
@rem Install driver as service
@if [%1] == [] exit
@set T=wipf
@set F=wipfdrv%1.sys
@set W=%WINDIR%\System32\Drivers
copy /Y "%~dp0%F%" %W%
sc create %T% binPath="%W%\%F%" type=kernel start=boot DisplayName="Windows IP Filter"
sc start %T%

3
bin/install32.cmd Normal file
View File

@ -0,0 +1,3 @@
@rem Install driver as service for x86
@install 32

3
bin/install64.cmd Normal file
View File

@ -0,0 +1,3 @@
@rem Install driver as service for x64
@install 64

12
bin/uninstall.cmd Normal file
View File

@ -0,0 +1,12 @@
@rem Uninstall driver
@if [%1] == [] exit
@set T=wipf
@set F=wipfdrv%1.sys
@set W=%WINDIR%\System32\Drivers
sc stop %T%
sc delete %T%
del /F %W%\%F%

3
bin/uninstall32.cmd Normal file
View File

@ -0,0 +1,3 @@
@rem Uninstall driver for x86
@uninstall 32

3
bin/uninstall64.cmd Normal file
View File

@ -0,0 +1,3 @@
@rem Uninstall driver for x64
@uninstall 64