From 52b7bf14556366a17356b132ab2bc68ae87befe9 Mon Sep 17 00:00:00 2001 From: ryfu-msft Date: Fri, 20 Oct 2023 15:44:25 -0700 Subject: [PATCH] remove com --- src/Microsoft.Management.Deployment/InstallOptions.cpp | 8 -------- src/Microsoft.Management.Deployment/InstallOptions.h | 3 --- src/Microsoft.Management.Deployment/PackageManager.cpp | 5 ----- src/Microsoft.Management.Deployment/PackageManager.idl | 6 ------ 4 files changed, 22 deletions(-) diff --git a/src/Microsoft.Management.Deployment/InstallOptions.cpp b/src/Microsoft.Management.Deployment/InstallOptions.cpp index 4b8f517083..3d491a29e5 100644 --- a/src/Microsoft.Management.Deployment/InstallOptions.cpp +++ b/src/Microsoft.Management.Deployment/InstallOptions.cpp @@ -160,13 +160,5 @@ namespace winrt::Microsoft::Management::Deployment::implementation { return m_skipDependencies; } - void InstallOptions::AllowReboot(bool value) - { - m_allowReboot = value; - } - bool InstallOptions::AllowReboot() - { - return m_allowReboot; - } CoCreatableMicrosoftManagementDeploymentClass(InstallOptions); } diff --git a/src/Microsoft.Management.Deployment/InstallOptions.h b/src/Microsoft.Management.Deployment/InstallOptions.h index 068418089a..b5f2fb0a6e 100644 --- a/src/Microsoft.Management.Deployment/InstallOptions.h +++ b/src/Microsoft.Management.Deployment/InstallOptions.h @@ -44,8 +44,6 @@ namespace winrt::Microsoft::Management::Deployment::implementation void AcceptPackageAgreements(bool value); bool SkipDependencies(); void SkipDependencies(bool value); - bool AllowReboot(); - void AllowReboot(bool value); #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) private: @@ -67,7 +65,6 @@ namespace winrt::Microsoft::Management::Deployment::implementation bool m_force = false; bool m_acceptPackageAgreements = true; bool m_skipDependencies = false; - bool m_allowReboot = false; #endif }; } diff --git a/src/Microsoft.Management.Deployment/PackageManager.cpp b/src/Microsoft.Management.Deployment/PackageManager.cpp index 396c736d31..efbb8e2cc3 100644 --- a/src/Microsoft.Management.Deployment/PackageManager.cpp +++ b/src/Microsoft.Management.Deployment/PackageManager.cpp @@ -457,11 +457,6 @@ namespace winrt::Microsoft::Management::Deployment::implementation { context->Args.AddArg(Execution::Args::Type::SkipDependencies); } - - if (options.AllowReboot()) - { - context->Args.AddArg(Execution::Args::Type::AllowReboot); - } } else { diff --git a/src/Microsoft.Management.Deployment/PackageManager.idl b/src/Microsoft.Management.Deployment/PackageManager.idl index bff688d853..ba706b9d42 100644 --- a/src/Microsoft.Management.Deployment/PackageManager.idl +++ b/src/Microsoft.Management.Deployment/PackageManager.idl @@ -906,12 +906,6 @@ namespace Microsoft.Management.Deployment /// The package installer type. PackageInstallerType InstallerType; } - - [contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 9)] - { - // Allow a reboot to complete an installation if applicable. - Boolean AllowReboot; - } } [contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 4)]