This commit is contained in:
Michael H.G. Schmidt 2021-02-27 15:51:47 +01:00
parent 69974c863d
commit fe614dc574
6 changed files with 14 additions and 11 deletions

View File

@ -1,15 +1,15 @@
@echo off
IF %1.==. GOTO USAGE
rem removing extension ...
set BASENAME=%~n1
rem adding extension again ...
set SOURCEFILE=%BASENAME%.pb
set WORK=c:\TEMP
set SOURCEFILE=%1
pbcompiler /EXE %WORK%\%1.exe /CONSOLE %SOURCEFILE%.pb
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
GOTO END
:USAGE
echo "usage: %0 <PureBasic SOURCEFILE>"
:END

View File

@ -3,13 +3,14 @@
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set MSI=Far30b5700.x64.20201112.msi
set MSI=far-setup.msi
echo ####### %0 #######
cd %SOFTWARE%
@echo on
msiexec /i %MSI% /quiet
msiexec /x %MSI% /passive
msiexec /i %MSI% INSTALLDIR="%ProgramFiles%\FarManager" /passive
@echo off
cd %SCRIPTS%

View File

@ -1,13 +1,15 @@
@echo off
set newPATH=%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\wbem;%SYSTEMROOT%\system32\WindowsPowerShell\v1.0;%LOCALAPPDATA%\Microsoft\WindowsApps;%TOOLS%;%TOOLS%\notepad++;%TOOLS%\git\bin;%TOOLS%\git\usr\bin;%ProgramFiles%\PureBasic\Compilers;%ProgramFiles%\FarManager
echo ####### %0 #######
echo setting GLOBAL PATH variable ...
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^
/v PATH ^
/t REG_EXPAND_SZ ^
/d "%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\wbem;%SYSTEMROOT%\system32\WindowsPowerShell\v1.0;%LOCALAPPDATA%\Microsoft\WindowsApps;%TOOLS%;%TOOLS%\notepad++;%TOOLS%\git\bin;%TOOLS%\git\usr\bin;%ProgramFiles%\PureBasic\Compilers;%ProgramFiles%\Far Manager" ^
/f
/v PATH /t REG_EXPAND_SZ /d "%newPATH%" /f
setx PATH "%newPATH%"
set PATH=%newPATH%
echo ####### %0 #######

Binary file not shown.

Binary file not shown.

Binary file not shown.