diff --git a/Documents/ReleaseNotesPreview.md b/Documents/ReleaseNotesPreview.md index b1f18cd49..0e640b1ec 100644 --- a/Documents/ReleaseNotesPreview.md +++ b/Documents/ReleaseNotesPreview.md @@ -27,6 +27,8 @@ For stable versions, please read [NanaZip Release Notes](ReleaseNotes.md). - Synchronize the RHash implementation to the latest master branch which is after v1.4.5. (https://github.com/rhash/RHash/commit/cf2adf22ae7c39d9b8e5e7b87222046a8f42b3dc) +- Enable disabling child process creation for NanaZip Self Extracting + Executables. **NanaZip 3.5 Preview 0 (3.5.1000.0)** diff --git a/NanaZip.Core/SevenZip/CPP/7zip/Bundles/SFXWin/SfxWin.cpp b/NanaZip.Core/SevenZip/CPP/7zip/Bundles/SFXWin/SfxWin.cpp index db347c5b5..141427d0d 100644 --- a/NanaZip.Core/SevenZip/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +++ b/NanaZip.Core/SevenZip/CPP/7zip/Bundles/SFXWin/SfxWin.cpp @@ -261,6 +261,11 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /* hPrevInstance */, ShowErrorMessage(L"Cannot enable security mitigations"); } + if (!::NanaZipDisableChildProcesses()) + { + ShowErrorMessage(L"Cannot enable security mitigations"); + } + ::MileEnablePerMonitorDialogScaling(); // **************** NanaZip Modification End **************** diff --git a/NanaZip.Core/SevenZip/CPP/7zip/UI/Console/MainAr.cpp b/NanaZip.Core/SevenZip/CPP/7zip/UI/Console/MainAr.cpp index 39b7dbfdb..ce9b6ed7c 100644 --- a/NanaZip.Core/SevenZip/CPP/7zip/UI/Console/MainAr.cpp +++ b/NanaZip.Core/SevenZip/CPP/7zip/UI/Console/MainAr.cpp @@ -133,6 +133,15 @@ int Z7_CDECL main << NError::MyFormatMessage(GetLastError()) << endl; } + + if (!::NanaZipDisableChildProcesses()) + { + FlushStreams(); + *g_ErrStream + << "Cannot disable child processes: " + << NError::MyFormatMessage(GetLastError()) + << endl; + } // **************** NanaZip Modification End **************** NConsoleClose::CCtrlHandlerSetter ctrlHandlerSetter; diff --git a/ReadMe.md b/ReadMe.md index 202704bae..14baae15d 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -72,7 +72,8 @@ Kenji Mouri - Enable Package Integrity Check. - Enable EH Continuation Metadata. - Enable Signed Returns. -- Enable disabling child process creation for command line version of NanaZip. +- Enable disabling child process creation for NanaZip CLI and Self Extracting + Executables. ## Differences between NanaZip and NanaZip Classic