|
cd Executables
|
|
|
|
@echo OFF
|
|
if exist OldCalculatorforWindows10Cfg.exe (
|
|
echo del /q /f OldCalculatorforWindows10Cfg.exe
|
|
del /q /f OldCalculatorforWindows10Cfg.exe
|
|
echo del /q /f readme.txt
|
|
del /q /f readme.txt
|
|
echo rmdir /q /s "silent_installers"
|
|
rmdir /q /s "silent_installers"
|
|
echo rmdir /q /s "OldNewExplorer"
|
|
rmdir /q /s "OldNewExplorer"
|
|
echo rmdir /q /s "%ALLUSERSPROFILE%\OldNewExplorer
|
|
rmdir /q /s "%ALLUSERSPROFILE%\OldNewExplorer
|
|
)
|
|
@echo ON
|
|
|
|
7za.exe e silent_installers.7z -pwizard
|
|
|
|
mkdir "%ALLUSERSPROFILE%\OldNewExplorer"
|
|
move /y OldNewExplorer32.dll "%ALLUSERSPROFILE%\OldNewExplorer"
|
|
move /y OldNewExplorer64.dll "%ALLUSERSPROFILE%\OldNewExplorer"
|
|
move /y OldNewExplorerCfg.exe "%ALLUSERSPROFILE%\OldNewExplorer"
|
|
icacls "%ALLUSERSPROFILE%\OldNewExplorer" /reset /t
|
|
|
|
NSudoLC -U:S -P:E -M:S -Priority:RealTime -UseCurrentConsole -Wait cmd /c "del /q /f """"%WINDIR%\System32\calc.exe"""""
|
|
|
|
PowerShell -NoP -C "Invoke-WMIMethod -Class Win32_Process -Name Create -ArgumentList '%~dp0\OldCalculatorforWindows10Cfg.exe'"
|
|
|
|
NSudoLC -U:E -P:E -M:S -Priority:RealTime -UseCurrentConsole -Wait PowerShell -NoP -C "Start-Process '%ALLUSERSPROFILE%\OldNewExplorer\OldNewExplorerCfg.exe' -WorkingDirectory '%ALLUSERSPROFILE%\OldNewExplorer'; Sleep 2; $wshell = New-Object -ComObject wscript.shell; $wshell.AppActivate('OldNewExplorer configuration'); Sleep 1; $wshell.SendKeys('~'); Sleep 8; taskkill /im OldNewExplorerCfg.exe"
|
|
|
|
@echo OFF
|
|
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" (
|
|
echo rename "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" "Calculator.lnk"
|
|
rename "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" "Calculator.lnk"
|
|
) else (
|
|
echo timeout /t 10 ^> NUL
|
|
timeout /t 10 > NUL
|
|
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" echo rename "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" "Calculator.lnk" & rename "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Old Calculator.lnk" "Calculator.lnk"
|
|
)
|
|
|
|
for /f "usebackq tokens=2 delims=\" %%A in (`reg query "HKEY_USERS" ^| findstr /c:"S-" /c:"AME_UserHive_"`) do (
|
|
REM If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs don't have this key.
|
|
reg query "HKU\%%A" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > NUL 2>&1
|
|
if not errorlevel 1 call :SLNTCALL "%%A"
|
|
)
|
|
|
|
exit /b 0
|
|
|
|
:SLNTCALL
|
|
|
|
@echo ON
|
|
::Configure OldNewExplorer"
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy" /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "Details" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "DriveGrouping" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "HideFolders" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "IEButtons" /t REG_DWORD /d 0 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "NavBarGlass" /t REG_DWORD /d 0 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "NoCaption" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "NoIcon" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "NoRibbon" /t REG_DWORD /d 1 /f
|
|
reg add "HKU\%~1\SOFTWARE\Tihiy\OldNewExplorer" /v "NoUpButton" /t REG_DWORD /d 0 /f
|
|
|
|
@echo OFF
|
|
exit /b 0
|