-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallAllArchiveSoftwareNoWait2.bat
More file actions
40 lines (35 loc) · 1.05 KB
/
Copy pathinstallAllArchiveSoftwareNoWait2.bat
File metadata and controls
40 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
REM filepath: c:\Users\Jevon\Documents\scripts\installAllArchiveSoftwareNoWait.bat
@echo off
REM Set the directory containing the installation files
set "INSTALL_DIR=C:\Archive"
REM Check if the directory exists
if not exist "%INSTALL_DIR%" (
echo Error: Directory "%INSTALL_DIR%" not found.
pause
exit /b 1
)
echo Starting installation process from "%INSTALL_DIR%"...
echo.
REM Loop through all .exe files in the directory
echo --- Processing Executable Files (.exe) ---
for %%F in ("%INSTALL_DIR%\*.exe") do (
echo Launching: "%%~nxF"
REM Launch exe with default UI
start "" "%%F"
echo Launched: "%%~nxF"
echo.
)
echo.
echo --- Processing MSI Files (.msi) ---
REM Loop through all .msi files in the directory
for %%F in ("%INSTALL_DIR%\*.msi") do (
echo Launching: "%%~nxF"
REM Launch msi with default UI
start "" msiexec /i "%%F"
echo Launched: "%%~nxF"
echo.
)
echo.
echo All installations have been launched.
echo Note: Installations are running in the background.
pause