Skip to content

Commit 6b1fe3e

Browse files
authored
setup.bat
1 parent 8c08085 commit 6b1fe3e

File tree

1 file changed

+4
-13
lines changed
  • Source Code/OwlOS 11 (24H2)/ProgramData-OwlOS

1 file changed

+4
-13
lines changed

Source Code/OwlOS 11 (24H2)/ProgramData-OwlOS/setup.bat

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
@echo off
2-
@title "OwlOS 11 (24H2) v0.2"
2+
@title "OwlOS 11 (24H2) v0.3"
33
SETLOCAL EnableDelayedExpansion
44
taskkill /f /im explorer.exe >nul 2>&1
5-
::Setting fullscreen mode for post-installation script
6-
SET TempVBSFile=%temp%\~tmpSendKeysTemp.vbs
7-
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
8-
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
9-
ECHO Wscript.Sleep 900 >>"%TempVBSFile%"
10-
ECHO WshShell.SendKeys "{F11}" >>"%TempVBSFile%
11-
ECHO Wscript.Sleep 900 >>"%TempVBSFile%"
12-
CSCRIPT //nologo "%TempVBSFile%"
13-
145
::Running script as administrator
156
>nul 2>&1 reg.exe query "HKU\S-1-5-19" || (
167
echo set UAC = CreateObject^("Shell.Application"^) > "%temp%\Getadmin.vbs"
@@ -20,7 +11,7 @@ CSCRIPT //nologo "%TempVBSFile%"
2011
exit /b
2112
)
2213

23-
echo INSTALLING VCRedist
14+
echo INSTALLING VCRedist x64, x86 (It can take a while)
2415
start /b /wait C:\ProgramData\OwlOS\VCRedist\VC_redist.x64.exe /q /norestart >nul 2>&1
2516
start /b /wait C:\ProgramData\OwlOS\VCRedist\VC_redist.x86.exe /q /norestart >nul 2>&1
2617
cls
@@ -290,8 +281,8 @@ Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "FeatureS
290281
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\SystemSettings\AccountNotifications" /v "EnableAccountNotifications" /t REG_DWORD /d "0" /f >nul 2>&1
291282
Reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /ve /t REG_SZ /d "" /f >nul 2>&1
292283
Reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f >nul 2>&1
293-
Reg.exe add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Program Files\OwlOS\wallpaper.jpg" /f >nul 2>&1
294-
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters >nul 2>&1
284+
powershell -command "(New-Object -ComObject Shell.Application).MinimizeAll()" >nul 2>&1
285+
powershell -ExecutionPolicy Bypass -File C:\ProgramData\OwlOS\PowerShell_Scripts\wallpaper.ps1 >nul 2>&1
295286
rmdir /S /Q C:\ProgramData\OwlOS >nul 2>&1
296287
rmdir /S /Q C:\Windows.old >nul 2>&1
297288
del /q/f/s %TEMP%\* >nul 2>&1

0 commit comments

Comments
 (0)