Giter VIP home page Giter VIP logo

Comments (6)

Huios avatar Huios commented on August 19, 2024

Hey Julien,

I tried to reproduce the issue you mentioned but wasn't able to, my app installed fine when I had both the OnLaunch and AutomaticBackgroundTask elements in
This is what I did:

  • I created an App Package in VS
  • I selected the "Check For Updates every 1 Hour" Option
  • VS created a .appinstaller file
  • I modified it and added to the Update Settings.
  • I installed the package using the .appinstallerfile which worked fine

My app package has MinVersion="10.0.17763.0" and MaxVersionTested="10.0.18362.0". What are the values in your package and what Windows version were you trying to install on?

Here is what my .appinstaller file looks like:

<?xml version="1.0" encoding="utf-8"?> <AppInstaller Uri="<AppInstallerFileLocation>\AppInstaller_TestApp\AppInstaller_TestPkg\AppPackages\AppInstaller_TestPkg_x64.appinstaller" Version="1.0.1.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"> <MainPackage Name="MyApp" Version="1.0.1.0" Publisher="CN=MyPublisher" Uri="<PackageLocation>/AppInstaller_TestPkg_1.0.1.0_x64_Debug_Test/AppInstaller_TestPkg_1.0.1.0_x64_Debug.msix" ProcessorArchitecture="x64" /> <UpdateSettings> <OnLaunch HoursBetweenUpdateChecks="1" /> <AutomaticBackgroundTask/> </UpdateSettings> </AppInstaller>

Tanaka MSFT

from msix-docs.

driesvandamme avatar driesvandamme commented on August 19, 2024

@Huios Can you check if the update works as well?

  1. Host the appinstaller on an webserver (and open it with HTTP).
  2. Install the default version of the app (with appinstaller)
  3. Generate a new version of the app (with appinstaller version number +1)
  4. Then go to the http page and install the update

Does this test work as well for you?

from msix-docs.

julienshepherd avatar julienshepherd commented on August 19, 2024

Hey Julien,

I tried to reproduce the issue you mentioned but wasn't able to, my app installed fine when I had both the OnLaunch and AutomaticBackgroundTask elements in
This is what I did:

* I created an App Package in VS

* I selected the "Check For Updates every 1 Hour" Option

* VS created a .appinstaller file

* I modified it and added  to the Update Settings.

* I installed the package using the .appinstallerfile which worked fine

My app package has MinVersion="10.0.17763.0" and MaxVersionTested="10.0.18362.0". What are the values in your package and what Windows version were you trying to install on?

Here is what my .appinstaller file looks like:

<?xml version="1.0" encoding="utf-8"?> <AppInstaller Uri="<AppInstallerFileLocation>\AppInstaller_TestApp\AppInstaller_TestPkg\AppPackages\AppInstaller_TestPkg_x64.appinstaller" Version="1.0.1.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"> <MainPackage Name="MyApp" Version="1.0.1.0" Publisher="CN=MyPublisher" Uri="<PackageLocation>/AppInstaller_TestPkg_1.0.1.0_x64_Debug_Test/AppInstaller_TestPkg_1.0.1.0_x64_Debug.msix" ProcessorArchitecture="x64" /> <UpdateSettings> <OnLaunch HoursBetweenUpdateChecks="1" /> <AutomaticBackgroundTask/> </UpdateSettings> </AppInstaller>

Tanaka MSFT

My AppInstaller has this:

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller xmlns="http://schemas.microsoft.com/appx/appinstaller/2017"
              Version="1.0.0.16"
              Uri="MyPrivateUri">
              
  <MainBundle Name="MyPrivatePackageName" 
	      Publisher="CN=CompanyName, O=CompanyName, L=CompanyCity, C=CompanyCountryCode"
	      Version="2019.909.1235.0"
              Uri="MyPrivateAppxBundleUri" />

  <UpdateSettings>
      <OnLaunch />
      <AutomaticBackgroundTask />
  </UpdateSettings>
</AppInstaller>

The app targets 1803, the minimum target is also 1803.

from msix-docs.

driesvandamme avatar driesvandamme commented on August 19, 2024

@julienshepherd - Did you try an update of a higher version? Or just an install?

from msix-docs.

julienshepherd avatar julienshepherd commented on August 19, 2024

@julienshepherd - Did you try an update of a higher version? Or just an install?

I tried both.

from msix-docs.

Huios avatar Huios commented on August 19, 2024

@julienshepherd

Thanks for posting your AppInstallerfile. I think the issue is due to the AppInstaller schema you're referencing in your file.
According to the docs here AutomaticBackgroundTask requires the xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2" namespace (2017/2). The one in your current AppInstallerfile is xmlns="http://schemas.microsoft.com/appx/appinstaller/2017" (2017).

We have AppInstallerFileBuilder tool that can help with creating a file with the right namespace schema for different update settings. You can check it out here.

I hope this helps.

Tanaka MSFT

from msix-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.