2021-02-20 18:54:54 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set CONFIG=config\install-vscode.txt
|
2021-02-28 14:10:59 +01:00
|
|
|
set EXE=..\software\vscode-setup.exe
|
2021-03-06 16:23:00 +01:00
|
|
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
2021-02-20 18:54:54 +01:00
|
|
|
|
2021-02-27 20:07:28 +01:00
|
|
|
if NOT EXIST %EXE% (
|
|
|
|
echo ERROR: %EXE% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
2021-02-20 18:54:54 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
echo killing VisualStudio code processes...
|
2021-02-20 18:54:54 +01:00
|
|
|
taskkill /F /IM Code.exe 2>nul
|
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
echo cleanup ...
|
|
|
|
del /F "%PUBLIC%\Desktop\VScode.lnk" 2>nul
|
|
|
|
|
2021-02-20 18:54:54 +01:00
|
|
|
echo installing Visual Studio CODE ...
|
2021-03-10 23:09:16 +01:00
|
|
|
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
2021-03-06 16:23:00 +01:00
|
|
|
|
|
|
|
echo installing Desktop shortcut ...
|
|
|
|
copy /Y %STARTMENU%\"Visual Studio Code\Visual*.lnk" "%PUBLIC%\Desktop"
|
|
|
|
move /Y "%PUBLIC%\Desktop\Visual*.lnk" "%PUBLIC%\Desktop\VScode.lnk"
|
|
|
|
|
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
2021-02-20 18:54:54 +01:00
|
|
|
echo ####### %0 #######
|
2021-03-02 21:47:42 +01:00
|
|
|
pause
|
2021-02-20 18:54:54 +01:00
|
|
|
|