-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
48 lines (40 loc) · 1.81 KB
/
Copy pathinstall.bat
File metadata and controls
48 lines (40 loc) · 1.81 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
@echo off
echo ========================================
echo INDUS Terminal Installer
echo ========================================
echo.
REM Get installation directory
set "INSTALL_DIR=%LOCALAPPDATA%\INDUS"
echo Installing INDUS Terminal to: %INSTALL_DIR%
echo.
REM Create installation directory
if not exist "%INSTALL_DIR%" mkdir "%INSTALL_DIR%"
REM Copy files
echo Copying files...
copy /Y dist\indus.exe "%INSTALL_DIR%\indus.exe" >nul
REM Add to PATH
echo Adding INDUS to PATH...
setx PATH "%PATH%;%INSTALL_DIR%" >nul
REM Create desktop shortcut
echo Creating desktop shortcut...
powershell -Command "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%USERPROFILE%\Desktop\INDUS Terminal.lnk'); $Shortcut.TargetPath = '%INSTALL_DIR%\indus.exe'; $Shortcut.WorkingDirectory = '%USERPROFILE%'; $Shortcut.Save()"
REM Create Start Menu shortcut
echo Creating Start Menu shortcut...
if not exist "%APPDATA%\Microsoft\Windows\Start Menu\Programs\INDUS" mkdir "%APPDATA%\Microsoft\Windows\Start Menu\Programs\INDUS"
powershell -Command "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\INDUS\INDUS Terminal.lnk'); $Shortcut.TargetPath = '%INSTALL_DIR%\indus.exe'; $Shortcut.WorkingDirectory = '%USERPROFILE%'; $Shortcut.Save()"
echo.
echo ========================================
echo Installation Complete!
echo ========================================
echo.
echo INDUS Terminal has been installed to:
echo %INSTALL_DIR%
echo.
echo You can now:
echo 1. Double-click "INDUS Terminal" on your Desktop
echo 2. Search for "INDUS" in Start Menu
echo 3. Open any terminal and type: indus
echo.
echo Please restart your command prompt for PATH changes to take effect.
echo.
pause