-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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
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 |