mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-18 00:54:27 -04:00
[togo] be more verbose about the files being applied
This commit is contained in:
parent
54ee68f6fc
commit
390c134b7a
3 changed files with 15 additions and 11 deletions
|
@ -1327,7 +1327,7 @@ int SetWinToGoIndex(void)
|
||||||
if (i > 1)
|
if (i > 1)
|
||||||
i = Selection(lmprintf(MSG_291), lmprintf(MSG_292), version_name.String, i);
|
i = Selection(lmprintf(MSG_291), lmprintf(MSG_292), version_name.String, i);
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
wintogo_index = -1;
|
wintogo_index = -2; // Cancelled by the user
|
||||||
} else if (i == 0) {
|
} else if (i == 0) {
|
||||||
wintogo_index = 1;
|
wintogo_index = 1;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1442,12 +1442,12 @@ static BOOL SetupWinToGo(const char* drive_name, BOOL use_ms_efi)
|
||||||
// Also, since Rufus should (usually) be running as a 32 bit app, on 64 bit systems, we need to use
|
// Also, since Rufus should (usually) be running as a 32 bit app, on 64 bit systems, we need to use
|
||||||
// 'C:\Windows\Sysnative' and not 'C:\Windows\System32' to invoke bcdboot, as 'C:\Windows\System32'
|
// 'C:\Windows\Sysnative' and not 'C:\Windows\System32' to invoke bcdboot, as 'C:\Windows\System32'
|
||||||
// will get converted to 'C:\Windows\SysWOW64' behind the scenes, and ther is no bcdboot.exe there.
|
// will get converted to 'C:\Windows\SysWOW64' behind the scenes, and ther is no bcdboot.exe there.
|
||||||
uprintf("Enabling boot...");
|
|
||||||
static_sprintf(cmd, "%s\\bcdboot.exe %s\\Windows /v /f ALL /s %s", sysnative_dir,
|
static_sprintf(cmd, "%s\\bcdboot.exe %s\\Windows /v /f ALL /s %s", sysnative_dir,
|
||||||
drive_name, (use_ms_efi)?ms_efi:drive_name);
|
drive_name, (use_ms_efi)?ms_efi:drive_name);
|
||||||
|
uprintf("Enabling boot using command '%s'", cmd);
|
||||||
if (RunCommand(cmd, sysnative_dir, usb_debug) != 0) {
|
if (RunCommand(cmd, sysnative_dir, usb_debug) != 0) {
|
||||||
// Try to continue... but report a failure
|
// Try to continue... but report a failure
|
||||||
uprintf("Failed to enable boot using command '%s'", cmd);
|
uprintf("Failed to enable boot");
|
||||||
FormatStatus = ERROR_SEVERITY_ERROR | FAC(FACILITY_STORAGE) | APPERR(ERROR_ISO_EXTRACT);
|
FormatStatus = ERROR_SEVERITY_ERROR | FAC(FACILITY_STORAGE) | APPERR(ERROR_ISO_EXTRACT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
src/rufus.rc
10
src/rufus.rc
|
@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
||||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
EXSTYLE WS_EX_ACCEPTFILES
|
EXSTYLE WS_EX_ACCEPTFILES
|
||||||
CAPTION "Rufus 2.15.1118"
|
CAPTION "Rufus 2.15.1119"
|
||||||
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
||||||
|
@ -334,8 +334,8 @@ END
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 2,15,1118,0
|
FILEVERSION 2,15,1119,0
|
||||||
PRODUCTVERSION 2,15,1118,0
|
PRODUCTVERSION 2,15,1119,0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -352,13 +352,13 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
||||||
VALUE "FileDescription", "Rufus"
|
VALUE "FileDescription", "Rufus"
|
||||||
VALUE "FileVersion", "2.15.1118"
|
VALUE "FileVersion", "2.15.1119"
|
||||||
VALUE "InternalName", "Rufus"
|
VALUE "InternalName", "Rufus"
|
||||||
VALUE "LegalCopyright", "© 2011-2017 Pete Batard (GPL v3)"
|
VALUE "LegalCopyright", "© 2011-2017 Pete Batard (GPL v3)"
|
||||||
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
||||||
VALUE "OriginalFilename", "rufus.exe"
|
VALUE "OriginalFilename", "rufus.exe"
|
||||||
VALUE "ProductName", "Rufus"
|
VALUE "ProductName", "Rufus"
|
||||||
VALUE "ProductVersion", "2.15.1118"
|
VALUE "ProductVersion", "2.15.1119"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
10
src/vhd.c
10
src/vhd.c
|
@ -614,8 +614,12 @@ DWORD WINAPI WimProgressCallback(DWORD dwMsgId, WPARAM wParam, LPARAM lParam, PV
|
||||||
case WIM_MSG_FILEINFO:
|
case WIM_MSG_FILEINFO:
|
||||||
str = wchar_to_utf8((PWSTR)wParam);
|
str = wchar_to_utf8((PWSTR)wParam);
|
||||||
pFileData = (PWIN32_FIND_DATA)lParam;
|
pFileData = (PWIN32_FIND_DATA)lParam;
|
||||||
size = (((uint64_t)pFileData->nFileSizeHigh) << 32) + pFileData->nFileSizeLow;
|
if (pFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
|
||||||
uprintf("'%s' (%s)", str, SizeToHumanReadable(size, FALSE, FALSE));
|
uprintf("Creating: %s", str);
|
||||||
|
} else {
|
||||||
|
size = (((uint64_t)pFileData->nFileSizeHigh) << 32) + pFileData->nFileSizeLow;
|
||||||
|
uprintf("Extracting: %s (%s)", str, SizeToHumanReadable(size, FALSE, FALSE));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case WIM_MSG_RETRY:
|
case WIM_MSG_RETRY:
|
||||||
level = "retry";
|
level = "retry";
|
||||||
|
@ -700,7 +704,7 @@ static DWORD WINAPI WimApplyImageThread(LPVOID param)
|
||||||
}
|
}
|
||||||
count_files = FALSE;
|
count_files = FALSE;
|
||||||
// Actual apply
|
// Actual apply
|
||||||
if (!pfWIMApplyImage(hImage, wdst, 0)) {
|
if (!pfWIMApplyImage(hImage, wdst, WIM_FLAG_FILEINFO)) {
|
||||||
uprintf(" Could not apply image: %s", WindowsErrorString());
|
uprintf(" Could not apply image: %s", WindowsErrorString());
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue