mirror of
https://github.com/pbatard/rufus.git
synced 2026-10-24 02:28:58 +03:00
[wue] fix malformed OneDrive removal PowerShell command
* Closes #2984. * Also Fix "Enable runtime UEFI media validation" checkbox not always being properly enabled and ensure the README is also updated for VS2026.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Rufus: The Reliable USB Formatting Utility
|
||||
==========================================
|
||||
|
||||
[](https://github.com/pbatard/rufus/actions/workflows/vs2022.yml)
|
||||
[](https://github.com/pbatard/rufus/actions/workflows/vs2026.yml)
|
||||
[](https://github.com/pbatard/rufus/actions/workflows/mingw.yml)
|
||||
[](https://scan.coverity.com/projects/pbatard-rufus)
|
||||
[](https://github.com/pbatard/rufus/releases)
|
||||
@@ -39,7 +39,7 @@ Features
|
||||
Compilation
|
||||
-----------
|
||||
|
||||
Use either Visual Studio 2022 or MinGW and then invoke the `.sln` or `configure`/`make` respectively.
|
||||
Use either Visual Studio 2026 or MinGW and then invoke the `.sln` or `configure`/`make` respectively.
|
||||
|
||||
#### Visual Studio
|
||||
|
||||
|
||||
@@ -1454,7 +1454,6 @@ DWORD WINAPI ImageScanThread(LPVOID param)
|
||||
}
|
||||
UpdateImage(dont_display_image_name);
|
||||
ToggleImageOptions();
|
||||
EnableControls(TRUE, FALSE);
|
||||
// Set Target and FS accordingly
|
||||
if (img_report.is_iso || img_report.is_windows_img) {
|
||||
IGNORE_RETVAL(ComboBox_SetCurSel(hBootType, image_index));
|
||||
@@ -1467,6 +1466,7 @@ DWORD WINAPI ImageScanThread(LPVOID param)
|
||||
SendMessage(hMainDialog, WM_COMMAND, (CBN_SELCHANGE_INTERNAL << 16) | IDC_FILE_SYSTEM,
|
||||
ComboBox_GetCurSel(hFileSystem));
|
||||
}
|
||||
EnableControls(TRUE, FALSE);
|
||||
// Lose the focus on the select ISO (but place it on Close)
|
||||
SendMessage(hMainDialog, WM_NEXTDLGCTL, (WPARAM)FALSE, 0);
|
||||
// Lose the focus from Close and set it back to Start
|
||||
|
||||
10
src/rufus.rc
10
src/rufus.rc
@@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
IDD_DIALOG DIALOGEX 12, 12, 232, 326
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_ACCEPTFILES
|
||||
CAPTION "Rufus 4.15.2385"
|
||||
CAPTION "Rufus 4.15.2386"
|
||||
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
|
||||
BEGIN
|
||||
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
|
||||
@@ -409,8 +409,8 @@ END
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 4,15,2385,0
|
||||
PRODUCTVERSION 4,15,2385,0
|
||||
FILEVERSION 4,15,2386,0
|
||||
PRODUCTVERSION 4,15,2386,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@@ -428,13 +428,13 @@ BEGIN
|
||||
VALUE "Comments", "https://rufus.ie"
|
||||
VALUE "CompanyName", "Akeo Consulting"
|
||||
VALUE "FileDescription", "Rufus"
|
||||
VALUE "FileVersion", "4.15.2385"
|
||||
VALUE "FileVersion", "4.15.2386"
|
||||
VALUE "InternalName", "Rufus"
|
||||
VALUE "LegalCopyright", "© 2011-2026 Pete Batard (GPL v3)"
|
||||
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
|
||||
VALUE "OriginalFilename", "rufus-4.15.exe"
|
||||
VALUE "ProductName", "Rufus"
|
||||
VALUE "ProductVersion", "4.15.2385"
|
||||
VALUE "ProductVersion", "4.15.2386"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
@@ -279,8 +279,8 @@ char* CreateUnattendXml(int arch, int flags)
|
||||
// Remove OneDrive
|
||||
StrArrayAdd(&commands, "reg add \"HKLM\\Software\\Policies\\Microsoft\\Windows\\OneDrive\" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f", TRUE);
|
||||
StrArrayAdd(&commands, "PowerShell -NonInteractive -WindowStyle Hidden -Command "
|
||||
"\"Remove-Item -Path $env:SystemRoot\\System32\\OneDriveSetup.exe -Force -Confirm:$false;"
|
||||
"\"Remove-Item -Path $env:SystemRoot\\SysWOW64\\OneDriveSetup.exe -Force -Confirm:$false;", TRUE);
|
||||
"\"Remove-Item -Path $env:SystemRoot\\System32\\OneDriveSetup.exe -Force -Confirm:$false; "
|
||||
"Remove-Item -Path $env:SystemRoot\\SysWOW64\\OneDriveSetup.exe -Force -Confirm:$false;\"", TRUE);
|
||||
// Remove Outlook. How the frig is forcing Outlook on users legal when MS got pinned for bundling IE with Windows?
|
||||
StrArrayAdd(&commands, "PowerShell -NonInteractive -WindowStyle Hidden -Command "
|
||||
"\"Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like '*Outlook*'} |"
|
||||
|
||||
Reference in New Issue
Block a user