Forum Discussion
MSIX Tool - Error after reboot - Creating a Package for MSI Attach
I m installing desktop application and it require reboot during installation - I receive see two option either to reboot from my application message or within MSIX restart option - i have tried both the option but it gives me an error message - see below logs below
[12/23/2022 11:55:21 PM] [Debug] Starting reboot listener
[12/23/2022 11:55:21 PM] [Debug] Starting the Monitoring session
[12/23/2022 11:55:21 PM] [Debug] Stopping Windows Update service as it might cause issues while packaging the application.
[12/23/2022 11:55:21 PM] [Debug] Stopping service. ServiceName : wuauserv.
[12/23/2022 11:55:22 PM] [Warning] SetServiceStateFailure. ServiceName : msiserver, error : System.ComponentModel.Win32Exception (0x80004005): Access is denied
at SetServiceStartValue(String serviceName, UInt32 startMode).
[12/23/2022 11:55:22 PM] [Debug] Restoring RunOnce commands.
[12/23/2022 11:55:23 PM] [Debug] ServiceNotFound. ServiceName : wuauserv.
[12/23/2022 11:55:23 PM] [Info] Starting service. ServiceName : msiserver.
[12/23/2022 11:55:23 PM] [Debug] The Run Once Execution Subsystem is responding to the OnStartMonitoringFinished event. Starting RebootTaskRunner for executing Windows RunOnce tasks.
[12/23/2022 11:55:23 PM] [Debug] RebootTaskRunner failed with exit code: 28
[12/23/2022 11:55:23 PM] [Error] Error monitoring: An error was encountered while attempting to process system reboot tasks.
[12/23/2022 11:55:23 PM] [Debug] Cleaning RunOnce Values
[12/23/2022 11:55:23 PM] [Debug] Resume after restart background worker completed.
[12/23/2022 11:55:23 PM] [Debug] Getting environment object from %UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\MsixGenerator.ConversionState.xml
[12/23/2022 11:55:23 PM] [Error] Error Occurred: Microsoft.ApplicationVirtualization.Packaging.Sequencing.SequencerException: An error was encountered while attempting to process system reboot tasks. ---> Microsoft.ApplicationVirtualization.Packaging.MonitorException: An error was encountered while attempting to process system reboot tasks.
at Microsoft.ApplicationVirtualization.Packaging.Sequencing.RunOnceRunner.OnStartMonitoringFinished(Object sender, MonitoringSessionEventArgs args)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Microsoft.ApplicationVirtualization.Packaging.Sequencing.MonitoringSessionManager.raise_StartMonitoringFinished(Object value0, MonitoringSessionEventArgs value1)
at Microsoft.ApplicationVirtualization.Packaging.Sequencing.MonitoringSessionManager.StartMonitoring(IMonitorAdapter monitor, String oldManifestPath, Func`3 fnGetProcessesToMonitor, Func`3 fnGetProcessesToChildMonitor)
--- End of inner exception stack trace ---
at Microsoft.ApplicationVirtualization.Packaging.Sequencing.MonitoringSessionManager.StartMonitoring(IMonitorAdapter monitor, String oldManifestPath, Func`3 fnGetProcessesToMonitor, Func`3 fnGetProcessesToChildMonitor)
at MsixGenerator.LocalOrRemoteExecution.ExecutionSessions.MonitoringLocalOrRemoteSession.StartMonitoring()
at MsixGenerator.MsixPackageGenerator.StartMonitoring(IRebootHandlerSession rebootHandlerSession)
at MsixPackagingTool.ViewModel.Common.ViewModelBase.StartMonitoringAndAttachRebootListener()
at MsixPackagingTool.ViewModel.Common.ViewModelBase.StartMonitoring()
at MsixPackagingTool.ViewModel.Common.ViewModelBase.ResumeForLocal()
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Any help will be appreciated.