w10install/scripts/install-far.cmd

28 lines
621 B
Batchfile
Raw Normal View History

2021-01-30 21:38:46 +01:00
@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
2021-02-27 15:51:47 +01:00
set MSI=far-setup.msi
2021-01-30 21:38:46 +01:00
2021-02-27 20:07:28 +01:00
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
2021-01-30 21:38:46 +01:00
echo ####### %0 #######
cd %SOFTWARE%
@echo on
2021-02-27 15:51:47 +01:00
msiexec /i %MSI% INSTALLDIR="%ProgramFiles%\FarManager" /passive
2021-01-30 21:38:46 +01:00
@echo off
cd %SCRIPTS%
2021-02-28 14:10:59 +01:00
rem copy link to desktop ...
copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Far Manager 3 x64\Far*" ^
%PUBLIC%\Desktop
2021-01-30 21:38:46 +01:00
2021-02-28 15:24:20 +01:00
echo renaming Far Manager desktop link ...
move /Y "%PUBLIC%\Desktop\Far Manager 3 x64.lnk" "%PUBLIC%\Desktop\Far Manager.lnk"
2021-02-28 14:10:59 +01:00
echo ####### %0 #######