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 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%
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
|