Заменить Total Commander на Double Commander
This commit is contained in:
1 parent
aa6c99bc4d
commit
b0016a624f
5 files changed
+35
-32
No files matched your search
@@ -51,7 +51,7 @@ build_x86\Release\setup_x86.exe
|
|||||||
дисках.
|
дисках.
|
||||||
- Предупреждает и выходит, если найдены обе папки с образами.
|
- Предупреждает и выходит, если найдены обе папки с образами.
|
||||||
- Находит `\efi\Paravis\Boot\NOT.DEL` для `src_x64.exe` / `src_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`
|
- Использует `%WINDIR%\SYSWOW64` для выбора x64-интерфейса; `firmware_type`
|
||||||
выбирает Legacy или UEFI для x86-интерфейса.
|
выбирает Legacy или UEFI для x86-интерфейса.
|
||||||
- Собирает те же командные строки
|
- Собирает те же командные строки
|
||||||
|
|||||||
+2
-1
@@ -30,6 +30,7 @@ Paravis, используемое интерфейсом установщика.
|
|||||||
- установочные образы Microsoft (`*.wim`, `*.esd`, `*.iso`), включая архив
|
- установочные образы Microsoft (`*.wim`, `*.esd`, `*.iso`), включая архив
|
||||||
`Data.pf`;
|
`Data.pf`;
|
||||||
- производные шрифтов Microsoft (`tahoma*.pf2`, `segoeui18.pf2`);
|
- производные шрифтов Microsoft (`tahoma*.pf2`, `segoeui18.pf2`);
|
||||||
- Total Commander и другие сторонние программы;
|
- Double Commander и другие сторонние программы (бинарники в репозиторий не
|
||||||
|
входят; программа запускается установщиком с флешки);
|
||||||
- ключи подписи, сертификаты и подписанные файлы;
|
- ключи подписи, сертификаты и подписанные файлы;
|
||||||
- результаты сборки (`*.exe`, объектные файлы, журналы).
|
- результаты сборки (`*.exe`, объектные файлы, журналы).
|
||||||
@@ -113,7 +113,7 @@ Func _x86()
|
|||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40)
|
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -130,9 +130,9 @@ Func _x86()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86)
|
RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
@@ -150,7 +150,7 @@ Func _x86()
|
|||||||
_WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF, 255)
|
_WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF, 255)
|
||||||
$iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40)
|
$iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -162,9 +162,9 @@ Func _x86()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86)
|
RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
@@ -185,7 +185,7 @@ Func _x64()
|
|||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40)
|
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -206,9 +206,9 @@ Func _x64()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64)
|
RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ Func _x86()
|
|||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40)
|
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 45, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 145, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -139,9 +139,9 @@ Func _x86()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86)
|
RunWait($setup & $ESD7x86 & $OEM7x86 & $UN7x86)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
@@ -160,7 +160,7 @@ Func _x86()
|
|||||||
WinSetOnTop($hGUI, "", 1)
|
WinSetOnTop($hGUI, "", 1)
|
||||||
$iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40)
|
$iBtn10 = GUICtrlCreateButton("Установить Windows 10", 5, 5, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 105, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -172,9 +172,9 @@ Func _x86()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86)
|
RunWait($setup & $ESD10x86 & $OEM10x86 & $UN10x86)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
@@ -196,7 +196,7 @@ Func _x64()
|
|||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40)
|
$iBtn7 = GUICtrlCreateButton("Установить Windows 7", 5, 85, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
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)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40)
|
$iBtnR = GUICtrlCreateButton("Перезагрузка", 5, 185, 350, 40)
|
||||||
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
GUICtrlSetFont(-1, 13, 500, 0, $font)
|
||||||
@@ -217,9 +217,9 @@ Func _x64()
|
|||||||
GUISetState(@SW_HIDE)
|
GUISetState(@SW_HIDE)
|
||||||
RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64)
|
RunWait($setup & $ESD7x64 & $OEM7x64 & $UN7x64)
|
||||||
GUISetState(@SW_SHOW)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnTC
|
Case $iBtnDC
|
||||||
GUISetState(@SW_HIDE)
|
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)
|
GUISetState(@SW_SHOW)
|
||||||
Case $iBtnR
|
Case $iBtnR
|
||||||
Exit
|
Exit
|
||||||
|
|||||||
+14
-12
@@ -48,8 +48,8 @@ enum class Action {
|
|||||||
Win7x64,
|
Win7x64,
|
||||||
Win10x86,
|
Win10x86,
|
||||||
Win7x86,
|
Win7x86,
|
||||||
TotalCmd64,
|
DoubleCmd64,
|
||||||
TotalCmd86,
|
DoubleCmd86,
|
||||||
Reboot
|
Reboot
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -333,11 +333,13 @@ std::wstring SetupCommand(const wchar_t* esd, const wchar_t* oem,
|
|||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::wstring TotalCmdCommand()
|
std::wstring DoubleCmdCommand()
|
||||||
{
|
{
|
||||||
const wchar_t* exe = g_is64 ? L"TOTALCMD64.EXE" : L"TOTALCMD.EXE";
|
const wchar_t* arch = g_is64 ? L"x64" : L"x86";
|
||||||
return g_bootRoot + L"\\TotalCommander\\" + exe +
|
std::wstring exe = g_bootRoot + L"\\DoubleCommander\\" + arch +
|
||||||
L" /I=\"%%COMMANDER_PATH%%\\tcmdmain.ini\"";
|
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)
|
void RunInstallerCommand(const std::wstring& command)
|
||||||
@@ -390,9 +392,9 @@ void HandleButton(int id)
|
|||||||
RunInstallerCommand(SetupCommand(L"install_7_x86.esd", L"$OEM7x86$",
|
RunInstallerCommand(SetupCommand(L"install_7_x86.esd", L"$OEM7x86$",
|
||||||
L"unattend7x86.xml"));
|
L"unattend7x86.xml"));
|
||||||
break;
|
break;
|
||||||
case Action::TotalCmd64:
|
case Action::DoubleCmd64:
|
||||||
case Action::TotalCmd86:
|
case Action::DoubleCmd86:
|
||||||
RunInstallerCommand(TotalCmdCommand());
|
RunInstallerCommand(DoubleCmdCommand());
|
||||||
break;
|
break;
|
||||||
case Action::Reboot:
|
case Action::Reboot:
|
||||||
ExitProcess(0);
|
ExitProcess(0);
|
||||||
@@ -412,18 +414,18 @@ void BuildButtonDefs()
|
|||||||
g_preview || HasEsd(L"install_10_x64.esd") });
|
g_preview || HasEsd(L"install_10_x64.esd") });
|
||||||
g_buttons.push_back({ id++, L"Установить Windows 7", 85, Action::Win7x64,
|
g_buttons.push_back({ id++, L"Установить Windows 7", 85, Action::Win7x64,
|
||||||
g_preview || HasEsd(L"install_7_x64.esd") });
|
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 });
|
g_buttons.push_back({ id++, L"Перезагрузка", 185, Action::Reboot, true });
|
||||||
} else if (g_x86Legacy) {
|
} else if (g_x86Legacy) {
|
||||||
g_buttons.push_back({ id++, L"Установить Windows 10", 5, Action::Win10x86,
|
g_buttons.push_back({ id++, L"Установить Windows 10", 5, Action::Win10x86,
|
||||||
g_preview || HasEsd(L"install_10_x86.esd") });
|
g_preview || HasEsd(L"install_10_x86.esd") });
|
||||||
g_buttons.push_back({ id++, L"Установить Windows 7", 45, Action::Win7x86,
|
g_buttons.push_back({ id++, L"Установить Windows 7", 45, Action::Win7x86,
|
||||||
g_preview || HasEsd(L"install_7_x86.esd") });
|
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 });
|
g_buttons.push_back({ id++, L"Перезагрузка", 145, Action::Reboot, true });
|
||||||
} else {
|
} else {
|
||||||
g_buttons.push_back({ id++, L"Установить Windows 10", 5, Action::Win10x86, true });
|
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 });
|
g_buttons.push_back({ id++, L"Перезагрузка", 105, Action::Reboot, true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user