MicrosoftDocs / msix-docs

repository for msix content
Creative Commons Attribution 4.0 International
59 stars 114 forks source link

AppInstaller 1.17.10751.0 - App is no longer starting #320

Closed kd509 closed 2 years ago

kd509 commented 2 years ago

Hello,

we have installed an app by installing it via a downloaded appinstaller-file from web. The appinstaller file has the following UpdateSettings inside:

  <UpdateSettings>
    <OnLaunch
      HoursBetweenUpdateChecks="0"
      ShowPrompt="true"
      UpdateBlocksActivation="true" />
  </UpdateSettings>

The uri of the AppInstaller and MainBundle is a website, not on a local file system,

Updates has been delivered without problem right now. After we switched from AppInstaller Version 1.17.10271.0 to 1.17.10751.0 we got following error when starting the app:

image (it means: app package cannot be opened. reason: unknown error)

When I check event log (protocol: Microsoft-Windows-TWinUI/Operational) I got following error:

[-]<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
[-] <System>
  <Provider Name="Microsoft-Windows-Immersive-Shell" Guid="{315a8872-923e-4ea2-9889-33cd4754bf64}" /> 
  <EventID>5961</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>5961</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x4000000000000000</Keywords> 
  <TimeCreated SystemTime="2022-05-25T15:22:23.0854887Z" /> 
  <EventRecordID>157</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="1764" ThreadID="22892" /> 
  <Channel>Microsoft-Windows-TWinUI/Operational</Channel> 
  <Computer>???</Computer> 
  <Security UserID="???" /> 
  </System>
[-]<EventData>
  <Data Name="AppId">???.live_4105t6zp1j4cr!App</Data> 
  <Data Name="ErrorCode">-2147009250</Data> 
  <Data Name="PhaseFlags">1</Data> 
  </EventData>
  </Event>

The error text is: Fehlercode: Die Aktivierung ist aufgrund der APPINSTALLER-Aktualisierungseinstellungen für diese App blockiert.. Aktivierungsphase: Deployment

Translation: Errorcode: The activation for this app is blocked because of APPINSTALLER-updatesettings. Activation phase: Deployment

The AlLog.txt shows following:

[Wed May 25 17:39:35 2022]{6960d} FullTrustAppServiceClient -> process starting with arguments /InvokerPRAID: App GroupPolicy
[Wed May 25 17:39:35 2022]{6960d} FullTrustAppServiceClient -> Connecting to App Service
[Wed May 25 17:39:35 2022]{16584d} App::OnBackgroundActivated
[Wed May 25 17:39:35 2022]{16584d} App::OnBackgroundActivated: AppInstaller.GroupPolicies activated via AppService
[Wed May 25 17:39:35 2022]{16584d} FullTrustProcessAppServiceBase::NotifyAppServiceConnection
[Wed May 25 17:39:35 2022]{16584d} ConnectionInfo::Wait : Got connection
[Wed May 25 17:39:35 2022]{16584d} Sending request for Group Policies over App Service
[Wed May 25 17:39:35 2022]{6960d} GroupPoliciesAppServiceClient -> RequestReceived(0x00000001)
[Wed May 25 17:39:35 2022]{6960d} GroupPoliciesAppServiceClient -> Unable to read Group Policy from registry (0x00000002)
[Wed May 25 17:39:35 2022]{16584d} Received Group Policies over App Service
[Wed May 25 17:39:35 2022]{16584d} GetGroupPoliciesAsync -> IsMSAppInstallerProtocolEnabled = False
[Wed May 25 17:39:35 2022]{16584d} Activated with ProtocolForResults contract.
[Wed May 25 17:39:35 2022]{6960d} FullTrustAppServiceClient -> Connection closed, shutting down
[Wed May 25 17:39:35 2022]{16584d} AppInstallerUri constructor, URI: [ms-appinstaller:?checkForUpdates=de..._9.0.1328.0_x64__4105t6zp1j4cr]
[Wed May 25 17:39:35 2022]{16584d} Parsed AppInstaller URI: source: [N/A], activationUri: [N/A], checkForUdpates: [de..._9.0.1328.0_x64__4105t6zp1j4cr], msixauth []
[Wed May 25 17:39:35 2022]{16584d} Argument is a Uri: [ms-appinstaller:?checkForUpdates=de..._9.0.1328.0_x64__4105t6zp1j4cr]
[Wed May 25 17:39:35 2022]{16584d} Setting launch intent to MSAPPINSTALLER_UPDATE_ON_APP_ACTIVATION
[Wed May 25 17:39:35 2022]{16584d} GoToState -> LoadedState
[Wed May 25 17:39:35 2022]{16584d} GoToState -> DisplayAppsInfoErrorState
[Wed May 25 17:39:35 2022]{16584d} ReplaceSensitiveStrings 
Old message: [Unbekannter Fehler.]
Replace message:[Unbekannter Fehler.]

When we roll back the appinstaller to the previous version everything is working without problems.

Do you have any idea on how to solve the problems? Where to set up APPINSTALLER-updatesettings?

Regards

Karsten

kd509 commented 2 years ago

Today there was an update of appinstaller to version 1.17.10941.0 Everything ist working like before, now.

Regards

Karsten