-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Maplespe/ExplorerBlurMica
- Loading branch information
Showing
4 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
@echo off | ||
|
||
title Asking for administrator access | ||
mode CON COLS=37 LINES=3 | ||
color F0 | ||
echo ::::::::::::::::::::::::::::::::::::: | ||
echo :: Requesting administrator access :: | ||
echo ::::::::::::::::::::::::::::::::::::: | ||
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"" %Apply%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) | ||
color | ||
cls | ||
|
||
title Applying | ||
call :isAdmin | ||
if %errorlevel% == 0 ( | ||
echo Applying effects | ||
regsvr32 "%~dp0ExplorerBlurMica.dll" | ||
echo. | ||
) else ( | ||
echo ÇëÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐ! | ||
echo ���Թ���Ա��������! | ||
echo Please run as Administrator | ||
) | ||
|
||
pause >nul | ||
exit /b | ||
echo Restarting explorer | ||
taskkill /F /IM explorer.exe >nul | ||
start explorer.exe | ||
echo . | ||
echo title Success | ||
echo Changes applied successfully | ||
echo You can now close this window, it will close automatically in 5 seconds | ||
timeout /t 5 >nul | ||
exit /b 0 | ||
|
||
:isAdmin | ||
fsutil dirty query %systemdrive% >nul | ||
exit /b | ||
exit /b %errorlevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
@echo off | ||
|
||
title Asking for administrator access | ||
mode CON COLS=37 LINES=3 | ||
color F0 | ||
echo ::::::::::::::::::::::::::::::::::::: | ||
echo :: Requesting administrator access :: | ||
echo ::::::::::::::::::::::::::::::::::::: | ||
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"" %Apply%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) | ||
color | ||
cls | ||
|
||
title Uninstalling | ||
call :isAdmin | ||
if %errorlevel% == 0 ( | ||
regsvr32 /u "%~dp0ExplorerBlurMica.dll" | ||
taskkill /f /im explorer.exe & explorer.exe | ||
echo. | ||
) else ( | ||
echo ÇëÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐ! | ||
echo ���Թ���Ա��������! | ||
echo Please run as Administrator | ||
) | ||
|
||
pause >nul | ||
exit /b | ||
echo Restarting explorer | ||
taskkill /F /IM explorer.exe >nul | ||
start explorer.exe | ||
echo . | ||
echo title Success | ||
echo Changes applied successfully | ||
echo You can now close this window, it will close automatically in 5 seconds | ||
timeout /t 5 >nul | ||
exit /b 0 | ||
|
||
:isAdmin | ||
fsutil dirty query %systemdrive% >nul | ||
exit /b | ||
exit /b %errorlevel% |