-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
49 lines (43 loc) · 1.1 KB
/
Copy pathinstall.bat
File metadata and controls
49 lines (43 loc) · 1.1 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
41
42
43
44
45
46
47
48
49
@echo off
REM Windows Batch Script for DCIM Installation
echo.
echo ============================================================
echo Data Center Infrastructure Management System (DCIM)
echo Automated Installation
echo ============================================================
echo.
REM Check if PHP is installed
where php >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: PHP is not installed or not in PATH
echo Please install PHP 8.2 or higher and try again.
pause
exit /b 1
)
REM Check if Composer is installed
where composer >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Composer is not installed or not in PATH
echo Please install Composer and try again.
pause
exit /b 1
)
echo Step 1: Installing PHP dependencies...
call composer install --no-interaction
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo.
echo Step 2: Running installation script...
php install.php
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Installation failed
pause
exit /b 1
)
echo.
echo Installation completed successfully!
echo.
pause