Make non-embedded bundles skip making a system restore point.
Sean Hall committed
Apr 4, 2022 at 13:34 UTC
c0822d3142abcd17589861566d0724f5f0a6d0a0
1 file changed
+4
src/burn/engine/bundlepackageengine.cpp
+4
@@ -843,6 +843,10 @@ static HRESULT ExecuteBundle(
843
{
844
hr = StrAllocConcat(&sczBaseCommand, L" -quiet", 0);
845
ExitOnFailure(hr, "Failed to append quiet argument.");
846
+
847
+ // Embedded bundles will disable system restore so might as well make non-embedded do it, too.
848
+ hr = StrAllocConcat(&sczBaseCommand, L" -disablesystemrestore", 0);
849
+ ExitOnFailure(hr, "Failed to append disable system restore.");
850
}
851
852
if (wzOperationCommandLine)