From b0016a624fc10a72385a4f79aed0a08c315b614d Mon Sep 17 00:00:00 2001 From: Paravis Date: Fri, 13 Nov 2026 10:47:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Total=20Commander=20=D0=BD=D0=B0=20Double=20Commander?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- THIRD-PARTY.md | 3 ++- legacy-au3/setup-preview.au3 | 18 +++++++++--------- legacy-au3/setup.au3 | 18 +++++++++--------- src/main.cpp | 26 ++++++++++++++------------ 5 files changed, 35 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 275506a..696e3eb 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ build_x86\Release\setup_x86.exe дисках. - Предупреждает и выходит, если найдены обе папки с образами. - Находит `\efi\Paravis\Boot\NOT.DEL` для `src_x64.exe` / `src_x86.exe` и - Total Commander. + Double Commander (`DoubleCommander\x64` / `x86`). - Использует `%WINDIR%\SYSWOW64` для выбора x64-интерфейса; `firmware_type` выбирает Legacy или UEFI для x86-интерфейса. - Собирает те же командные строки diff --git a/THIRD-PARTY.md b/THIRD-PARTY.md index 328aacb..38990ef 100644 --- a/THIRD-PARTY.md +++ b/THIRD-PARTY.md @@ -30,6 +30,7 @@ Paravis, используемое интерфейсом установщика. - установочные образы Microsoft (`*.wim`, `*.esd`, `*.iso`), включая архив `Data.pf`; - производные шрифтов Microsoft (`tahoma*.pf2`, `segoeui18.pf2`); -- Total Commander и другие сторонние программы; +- Double Commander и другие сторонние программы (бинарники в репозиторий не + входят; программа запускается установщиком с флешки); - ключи подписи, сертификаты и подписанные файлы; - результаты сборки (`*.exe`, объектные файлы, журналы). diff --git a/legacy-au3/setup-preview.au3 b/legacy-au3/setup-preview.au3 index e9caf16..ebec7a7 100644 --- a/legacy-au3/setup-preview.au3 +++ b/legacy-au3/setup-preview.au3 @@ -113,7 +113,7 @@ Func _x86() GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 105, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 105, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -130,9 +130,9 @@ Func _x86() GUISetState(@SW_HIDE) RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x86\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit @@ -150,7 +150,7 @@ Func _x86() _WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF, 255) $iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 65, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 65, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -162,9 +162,9 @@ Func _x86() GUISetState(@SW_HIDE) RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x86\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit @@ -185,7 +185,7 @@ Func _x64() GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 145, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 145, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -206,9 +206,9 @@ Func _x64() GUISetState(@SW_HIDE) RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD64.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x64\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit diff --git a/legacy-au3/setup.au3 b/legacy-au3/setup.au3 index db0c041..65d4b06 100644 --- a/legacy-au3/setup.au3 +++ b/legacy-au3/setup.au3 @@ -122,7 +122,7 @@ Func _x86() GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 105, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 105, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -139,9 +139,9 @@ Func _x86() GUISetState(@SW_HIDE) RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x86\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit @@ -160,7 +160,7 @@ Func _x86() WinSetOnTop($hGUI, "", 1) $iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 65, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 65, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -172,9 +172,9 @@ Func _x86() GUISetState(@SW_HIDE) RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x86\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit @@ -196,7 +196,7 @@ Func _x64() GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) - $iBtnTC = GUICtrlCreateButton("Total Commander", 5, 145, 350, 40) + $iBtnDC = GUICtrlCreateButton("Double Commander", 5, 145, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) $iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40) GUICtrlSetFont(-1, 13, 500, 0, $font) @@ -217,9 +217,9 @@ Func _x64() GUISetState(@SW_HIDE) RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64) GUISetState(@SW_SHOW) - Case $iBtnTC + Case $iBtnDC GUISetState(@SW_HIDE) - RunWait($sDiskS & '\TotalCommander\TOTALCMD64.EXE /I="%%COMMANDER_PATH%%\tcmdmain.ini"') + RunWait($sDiskS & '\DoubleCommander\x64\doublecmd.exe --config-dir="' & $sDiskS & '\DoubleCommander\config"') GUISetState(@SW_SHOW) Case $iBtnR Exit diff --git a/src/main.cpp b/src/main.cpp index 50a7ce2..85405c1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,8 +48,8 @@ enum class Action { Win7x64, Win10x86, Win7x86, - TotalCmd64, - TotalCmd86, + DoubleCmd64, + DoubleCmd86, Reboot }; @@ -333,11 +333,13 @@ std::wstring SetupCommand(const wchar_t* esd, const wchar_t* oem, return command; } -std::wstring TotalCmdCommand() +std::wstring DoubleCmdCommand() { - const wchar_t* exe = g_is64 ? L"TOTALCMD64.EXE" : L"TOTALCMD.EXE"; - return g_bootRoot + L"\\TotalCommander\\" + exe + - L" /I=\"%%COMMANDER_PATH%%\\tcmdmain.ini\""; + const wchar_t* arch = g_is64 ? L"x64" : L"x86"; + std::wstring exe = g_bootRoot + L"\\DoubleCommander\\" + arch + + L"\\doublecmd.exe"; + std::wstring config = g_bootRoot + L"\\DoubleCommander\\config"; + return L"\"" + exe + L"\" --config-dir=\"" + config + L"\""; } void RunInstallerCommand(const std::wstring& command) @@ -390,9 +392,9 @@ void HandleButton(int id) RunInstallerCommand(SetupCommand(L"install_7_x86.esd", L"$OEM7x86$", L"unattend7x86.xml")); break; - case Action::TotalCmd64: - case Action::TotalCmd86: - RunInstallerCommand(TotalCmdCommand()); + case Action::DoubleCmd64: + case Action::DoubleCmd86: + RunInstallerCommand(DoubleCmdCommand()); break; case Action::Reboot: ExitProcess(0); @@ -412,18 +414,18 @@ void BuildButtonDefs() g_preview || HasEsd(L"install_10_x64.esd") }); g_buttons.push_back({ id++, L"Установить Windows 7", 85, Action::Win7x64, g_preview || HasEsd(L"install_7_x64.esd") }); - g_buttons.push_back({ id++, L"Total Commander", 145, Action::TotalCmd64, true }); + g_buttons.push_back({ id++, L"Double Commander", 145, Action::DoubleCmd64, true }); g_buttons.push_back({ id++, L"Перезагрузка", 185, Action::Reboot, true }); } else if (g_x86Legacy) { g_buttons.push_back({ id++, L"Установить Windows 10", 5, Action::Win10x86, g_preview || HasEsd(L"install_10_x86.esd") }); g_buttons.push_back({ id++, L"Установить Windows 7", 45, Action::Win7x86, g_preview || HasEsd(L"install_7_x86.esd") }); - g_buttons.push_back({ id++, L"Total Commander", 105, Action::TotalCmd86, true }); + g_buttons.push_back({ id++, L"Double Commander", 105, Action::DoubleCmd86, true }); g_buttons.push_back({ id++, L"Перезагрузка", 145, Action::Reboot, true }); } else { g_buttons.push_back({ id++, L"Установить Windows 10", 5, Action::Win10x86, true }); - g_buttons.push_back({ id++, L"Total Commander", 65, Action::TotalCmd86, true }); + g_buttons.push_back({ id++, L"Double Commander", 65, Action::DoubleCmd86, true }); g_buttons.push_back({ id++, L"Перезагрузка", 105, Action::Reboot, true }); } }