.
This commit is contained in:
parent
69974c863d
commit
fe614dc574
@ -1,15 +1,15 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
IF %1.==. GOTO USAGE
|
IF %1.==. GOTO USAGE
|
||||||
|
rem removing extension ...
|
||||||
|
set BASENAME=%~n1
|
||||||
|
rem adding extension again ...
|
||||||
|
set SOURCEFILE=%BASENAME%.pb
|
||||||
|
|
||||||
set WORK=c:\TEMP
|
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
|
||||||
set SOURCEFILE=%1
|
|
||||||
|
|
||||||
pbcompiler /EXE %WORK%\%1.exe /CONSOLE %SOURCEFILE%.pb
|
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
:USAGE
|
:USAGE
|
||||||
echo "usage: %0 <PureBasic SOURCEFILE>"
|
echo "usage: %0 <PureBasic SOURCEFILE>"
|
||||||
|
|
||||||
:END
|
:END
|
||||||
|
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
set SCRIPTS=..\scripts
|
set SCRIPTS=..\scripts
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
|
||||||
set MSI=Far30b5700.x64.20201112.msi
|
set MSI=far-setup.msi
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
cd %SOFTWARE%
|
cd %SOFTWARE%
|
||||||
@echo on
|
@echo on
|
||||||
msiexec /i %MSI% /quiet
|
msiexec /x %MSI% /passive
|
||||||
|
msiexec /i %MSI% INSTALLDIR="%ProgramFiles%\FarManager" /passive
|
||||||
@echo off
|
@echo off
|
||||||
cd %SCRIPTS%
|
cd %SCRIPTS%
|
||||||
|
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
@echo off
|
@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 ####### %0 #######
|
||||||
|
|
||||||
echo setting GLOBAL PATH variable ...
|
echo setting GLOBAL PATH variable ...
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^
|
||||||
/v PATH ^
|
/v PATH /t REG_EXPAND_SZ /d "%newPATH%" /f
|
||||||
/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" ^
|
setx PATH "%newPATH%"
|
||||||
/f
|
set PATH=%newPATH%
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user