Skip to content

Commit b506c68

Browse files
committed
simplify dev-inst scripts
[ci skip]
1 parent 34f5f54 commit b506c68

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

dev-inst-debug.bat

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
regsvr32 /s /u C:\Windows\System32\ShellExt\HashCheck.dll
2-
regsvr32 /s /u C:\Windows\SysWOW64\ShellExt\HashCheck.dll
3-
4-
copy Bin\x64\Debug\HashCheck.dll C:\Windows\System32\ShellExt\HashCheck.dll
5-
copy Bin\Win32\Debug\HashCheck.dll C:\Windows\SysWOW64\ShellExt\HashCheck.dll
6-
7-
regsvr32 /s C:\Windows\System32\ShellExt\HashCheck.dll
8-
regsvr32 /s C:\Windows\SysWOW64\ShellExt\HashCheck.dll
1+
@echo off
2+
whoami /groups /fo csv | find """S-1-16-12288""" > NUL || echo Administrative privileges required. && exit /b 2
3+
copy Bin\x64\Debug\HashCheck.dll C:\Windows\System32\ShellExt\HashCheck.dll || exit /b
4+
copy Bin\Win32\Debug\HashCheck.dll C:\Windows\SysWOW64\ShellExt\HashCheck.dll

dev-inst.bat

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
regsvr32 /s /u C:\Windows\System32\ShellExt\HashCheck.dll
2-
regsvr32 /s /u C:\Windows\SysWOW64\ShellExt\HashCheck.dll
3-
4-
copy Bin\x64\Release\HashCheck.dll C:\Windows\System32\ShellExt\HashCheck.dll
5-
copy Bin\Win32\Release\HashCheck.dll C:\Windows\SysWOW64\ShellExt\HashCheck.dll
6-
7-
regsvr32 /s C:\Windows\System32\ShellExt\HashCheck.dll
8-
regsvr32 /s C:\Windows\SysWOW64\ShellExt\HashCheck.dll
1+
@echo off
2+
whoami /groups /fo csv | find """S-1-16-12288""" > NUL || echo Administrative privileges required. && exit /b 2
3+
copy Bin\x64\Release\HashCheck.dll C:\Windows\System32\ShellExt\HashCheck.dll || exit /b
4+
copy Bin\Win32\Release\HashCheck.dll C:\Windows\SysWOW64\ShellExt\HashCheck.dll

0 commit comments

Comments
 (0)