Skip to content

Commit

Permalink
Add ting
Browse files Browse the repository at this point in the history
  • Loading branch information
44H4 committed Dec 25, 2024
1 parent 9919948 commit bef9e24
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions batches/chrome.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@echo off
color a
:: Check for administrator privileges
net session >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo This script requires administrative privileges.
pause
exit /b
)

REM Check if winget is available
echo --------------------------------------------------------
echo Winget Hub Installer - Chrome
echo --------------------------------------------------------
echo Made by : 44H4
echo Opening the WinGet Hub website (minimized) for more information...

pause
echo Checking for WinGet...
winget --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Winget is not installed or not available on your system.
echo Please install the App Installer from the Microsoft Store and try again.
pause
exit /b
)

REM Installing Chrome
echo Installing Chrome...
winget install google.chrome
echo Opening the WinGet Hub website (minimized) for more information...
start /MIN powershell -command "Start-Process 'https://44h4.github.io/WinGet-Hub'"
REM Check installation status
color 4
if %ERRORLEVEL% EQU 0 (
echo chrome installed successfully.
) else (
echo Failed to install Chrome. Please check for errors above.
)
pause

0 comments on commit bef9e24

Please sign in to comment.