w10install/optional/install-totalcommander.cmd

49 lines
1.2 KiB
Batchfile
Raw Normal View History

2021-02-28 15:24:20 +01:00
@echo off
set EXE=..\software\totalcommander-setup.exe
2021-03-13 23:32:05 +01:00
set KEY=..\personal\wincmd.key
set INI=..\personal\wincmd.ini
set FTPCONFIG=..\personal\wcx_ftp.key
2021-03-13 23:32:05 +01:00
set TARGET=c:\totalcmd
2021-03-14 11:53:43 +01:00
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
2021-02-28 15:24:20 +01:00
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo installing TotalCommander ...
2021-03-06 16:23:00 +01:00
start /wait %EXE% /AHMGDU
2021-02-28 15:24:20 +01:00
2021-03-14 11:53:43 +01:00
rem ... stupid Total Commander is installing its links to user area ? WTF ?
echo renaming and moving TotalCommander desktop link to public desktop ...
2021-03-06 16:23:00 +01:00
move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\TCM.lnk"
2021-03-14 11:53:43 +01:00
echo moving start menu entries to public area ...
move /Y %STARTMENU_USER%\"Total Commander" %STARTMENU% 2>nul
2021-03-13 23:32:05 +01:00
if EXIST %KEY% (
echo installing license ...
copy /Y %KEY% %TARGET%
)
if EXIST %FTPCONFIG% (
echo copying ftp config file ...
copy /Y %FTPCONFIG% %TARGET%
)
if EXIST %INI% (
echo copying ini file ...
copy /Y %INI% %TARGET%
)
2021-03-06 16:23:00 +01:00
rem refresh desktop (W10 style)
ie4uinit.exe -show
2021-02-28 15:24:20 +01:00
echo ####### %0 #######
2021-03-02 21:47:42 +01:00
pause