Comments (6)
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.
@Huios Can you check if the update works as well?
- Host the appinstaller on an webserver (and open it with HTTP).
- Install the default version of the app (with appinstaller)
- Generate a new version of the app (with appinstaller version number +1)
- Then go to the http page and install the update
Does this test work as well for you?
from msix-docs.
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.
@julienshepherd - Did you try an update of a higher version? Or just an install?
from msix-docs.
@julienshepherd - Did you try an update of a higher version? Or just an install?
I tried both.
from msix-docs.
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)
- Package Editor does have a services page
- Does not work
- SignTool examples with example data/parameters
- Documentation does not "flow" from the previous page
- Unusual sentence
- Please update the page to reflect overview
- Missing steps
- Time stamping
- not working
- PS C:\> Add-AppxProvisionedPackage -Path C:\offline -PackagePath C:\MSIX\MyPackage.msix -LicensePath C:\MSIX\MyLicense.xml
- Link to your sample templates
- Just give me the WinDbg EXECUTABLE file!
- CSP not documented. HOT 1
- Releasing a new app to ms store completely sucks
- Stuck at Install MSIX Package
- You can download the latest version of the offline package below link seems to need a vanity url
- This has nothing to do with Visual Studio 2022.
- how about PackageManager.UpdatePackageAsync ?
- Are MSIX Container, AppContainer, and MSIX AppContainer all different?
- Distribute appinstaller and MSIX via Azure blob storage? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msix-docs.