2021-01-29 11:42:19 +01:00
|
|
|
@echo off
|
2021-03-06 12:42:55 +01:00
|
|
|
set T=c:\TEMP
|
|
|
|
set TOOLS=c:\tools
|
2021-01-29 11:42:19 +01:00
|
|
|
|
2021-01-29 13:02:40 +01:00
|
|
|
set CONFIG=config\install-purebasic.txt
|
2021-02-27 20:07:28 +01:00
|
|
|
set EXE=..\software\purebasic-setup.exe
|
2021-03-06 12:42:55 +01:00
|
|
|
set ZIP=..\software\purebasic.zip
|
2021-01-29 11:42:19 +01:00
|
|
|
|
2021-02-28 14:10:59 +01:00
|
|
|
echo killing PureBasic processes...
|
2021-01-29 19:09:28 +01:00
|
|
|
taskkill /F /IM PureBasic.exe 2>nul
|
|
|
|
taskkill /F /IM pbcompiler.exe 2>nul
|
2021-01-29 11:42:19 +01:00
|
|
|
|
2021-03-06 12:42:55 +01:00
|
|
|
if NOT EXIST %EXE% if NOT EXIST %ZIP% (
|
|
|
|
echo WARNING: no PureBasic zipfile or exe-installer found!
|
|
|
|
goto END
|
|
|
|
)
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
if EXIST %EXE% (
|
|
|
|
echo INFO: %EXE% found!
|
|
|
|
|
|
|
|
rem remove old links ...
|
|
|
|
del /F /Q /A %PUBLIC%\Desktop\PureBasic*.lnk 2>nul
|
|
|
|
|
|
|
|
echo installing purebasic ...
|
|
|
|
%EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
|
|
|
goto LINK
|
|
|
|
)
|
|
|
|
|
|
|
|
if EXIST %ZIP% (
|
|
|
|
echo INFO: %ZIP% found!
|
|
|
|
|
|
|
|
rem remove old links ...
|
|
|
|
del /F /Q /A %PUBLIC%\Desktop\PureBasic*.lnk 2>nul
|
|
|
|
|
|
|
|
%TOOLS%\7z e -y -aoa -o%T%\purebasic %ZIP%
|
|
|
|
move /Y %T%\purebasic\PureBasic*.exe %T%\purebasic\purebasic-setup.exe
|
|
|
|
|
|
|
|
echo installing purebasic ...
|
|
|
|
%T%\purebasic\purebasic-setup.exe /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
|
|
|
|
|
|
|
echo cleanup ...
|
|
|
|
rd /S /Q %T%\purebasic 2>nul
|
|
|
|
goto LINK
|
|
|
|
)
|
2021-01-29 11:42:19 +01:00
|
|
|
|
2021-03-06 12:42:55 +01:00
|
|
|
:LINK
|
|
|
|
echo copy new PureBasic link to desktop ...
|
2021-02-28 14:10:59 +01:00
|
|
|
copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\PureBasic\PureBasic (x64).lnk" ^
|
2021-03-06 12:42:55 +01:00
|
|
|
%PUBLIC%\Desktop\PureBasic.lnk
|
2021-02-28 14:10:59 +01:00
|
|
|
|
2021-01-29 11:42:19 +01:00
|
|
|
echo ####### %0 #######
|
2021-03-06 12:42:55 +01:00
|
|
|
:END
|
2021-03-02 21:47:42 +01:00
|
|
|
pause
|
2021-01-29 11:42:19 +01:00
|
|
|
|