w10install/optional/install-steam.cmd

28 lines
546 B
Batchfile
Raw Normal View History

2021-03-10 23:29:53 +01:00
@echo off
set EXE=..\software\steam-setup.exe
2021-09-05 17:46:54 +02:00
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
2021-03-10 23:29:53 +01:00
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo killing STEAM processes...
taskkill /F /IM steam.exe 2>nul
echo installing STEAM ...
start /wait %EXE% /S
2021-09-05 15:02:23 +02:00
echo moving STEAM startmenu shortcut ...
move /Y %STARTMENU%\"Steam\Steam.lnk" %STARTMENU%
echo removing Steam startmenu folder ...
rd /S /Q %STARTMENU%\"Steam" 2>nul
2021-03-10 23:29:53 +01:00
echo ####### %0 #######
pause