Comments (7)
You added &msixauth=aad
inside the .appinstaller
file? If so, it may be fixed by changing it to &msixauth=aad
. Since the .appinstaller
is an XML file, &
has to be escaped. Although it's not clear to me how that would cause that error.
That error message seems to not have been updated since before Windows 11 came out, I'll update it.
from msix-packaging.
I'm using the "Create App Installer file" task from within a classic release pipeline, and add the &msixauth=aad
to its "Main Packagre/Bundle URI" parameter. And if I review the resulting .appinstaller
file, it is escaped as you suggested. So I think this is all fine.
I then checked the logs at %localappdata%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState
and what I do see there is
[Fri Nov 17 15:22:19 2023]{25000d} GetIsAuthenticatedLinkSupported -> False
So, to me it looks as if either Windows or my user account is not configured correctly to use this feature?
And one last question maybe: The documentation tells that only the .msix
file is allowed to require authentication, while the .appinstaller
file must be publicly accessible. But the log file at least checks on the .appinstaller
whether its using auth or not:
[Fri Nov 17 15:22:17 2023]{25000d} Parsed AppInstaller URI: source: [https://*******.azurewebsites.net/MyApp.appinstaller], activationUri: [N/A], checkForUdpates: [N/A], msixauth [no]
So, maybe the documentation is wrong and it must be protected, too?
from msix-packaging.
That log line for GetIsAuthenticatedLinkSupported
is a red herring, it always returns false and the check that is actually used for the feature is performed after that. I need to fix that.
The line you're actually interested in is the one that says GetIsAuthenticatedLinkForAzureSupported
right after that. Authenticated links are only supported on Windows 11.
So, maybe the documentation is wrong and it must be protected, too?
.appinstaller
files protected behind AAD auth are only supported in the latest version of App Installer (v1.21+). Previous versions do check for msixauth as you see in the logs, but there was a bug that prevented it to work properly for .appinstaller
files.
from msix-packaging.
Thanks for the reply, but I'm not sure what to do with it. I'm a bit confused with versions, names and projects (App-Installer
vs. msixCore
vs. msix-cli
vs. win-get
).
So, maybe you can be answer thefollowng questions:
- Is this msixauth feature currently supposed to work on Windows 11 23H2?
- what is the required version of app-installer to get this to work?
- how can I check the curently installed version of app-installer?
- where can I get the latest version if not installed?
- Is there anything else I have to make sure that it is installed / configured?
from msix-packaging.
Small update: This seems to be the version I'm using, if I don't confuse anything here:
C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.22.3172.0_x64__8wekyb3d8bbwe
from msix-packaging.
how can I check the curently installed version of app-installer?
Programmatically?
TryGetAppInstallerVersionForCurrentUser()
{
var package = PackageManager.FindPackageForUser("", "Microsoft.DesktopAppInstaller_8wekyb3d8bbwe")
if found return package.Id.Version
}
Interactively?
powershell -c Get-AppxPackage Microsoft.DesktopAppInstaller
from msix-packaging.
I'm a bit confused with versions, names and projects (
App-Installer
vs.msixCore
vs.msix-cli
vs.win-get
)
Yeah, it's pretty confusing...
- App Installer (app) - a GUI to install MSIX/APPX packages, it's the popup you see when you double-click on a .msix file
- .appinstaller (file extension) - files that help with auto-updates of packages, the update will sometimes trigger the App Installer (app) UI.
- Windows Package Manager or winget; https://github.com/microsoft/winget-cli - a command line to tool install applications (not limited to MSIX). It also includes APIs for other applications to do installs.
- MSIX Core (msixmgr.exe); https://github.com/Microsoft/msix-packaging/tree/master/MsixCore - allows installation of MSIX packages on older versions of Windows that don't have support for it (e.g. Windows 7). I think it doesn't support the full set of features MSIX has, but I don't know the specifics
- MSIX SDK; https://github.com/Microsoft/msix-packaging - a multi-platform, open-source version of the tools and APIs needed to create an MSIX; it does not have parity with the Windows-only tools available in the Windows SDK, like makeappx.exe
I don't know what msix-cli
is
Most of these things have independent version numbers, except for App Installer (app) and winget. winget is included in the same package as App Installer (Microsoft.DesktopAppInstaller), but it has a different version number. For example, the latest release version of App Installer is 1.21.3133.0, which includes winget 1.6.3133.0. The second part of the version has an offset, but the first and third part are the same. The next preview version has App Installer v1.22 and winget v1.7.
- Is this msixauth feature currently supposed to work on Windows 11 23H2?
Yes.
- what is the required version of app-installer to get this to work?
v1.21. In previous versions you could use msixauth but only with packages, not .appinstaller files
- how can I check the curently installed version of app-installer?
There are multiple ways
- From PowerShell you can do
Get-AppPackage *AppInstaller*
and you don't need to remember theMicrosoft.Desktop
part. - If you have the GUI up, there is an "info" button at the bottom left
- Running
winget --info
. You can also dowinget --version
but then you would have to map that to the package version
- where can I get the latest version if not installed?
From the Microsoft Store listing, or from the winget Releases page. If you get it from the winget Releases, you will get a .msixbundle that you will then have to install. There are also the short links https://aka.ms/GetWinGet
and https://aka.ms/GetWinGetPreview
- Is there anything else I have to make sure that it is installed / configured?
There shouldn't be.
from msix-packaging.
Related Issues (20)
- MSIX build AzDO task should fail if it doesn't build an msix package
- [BUG] Windows Services installed via MSIX become corrupted and can't start after package servicing HOT 1
- Email listed in SUPPORT.md is wrong HOT 1
- [BUG] Memory consumption is very high during the extraction of files in MSIX HOT 6
- How to use `,` in Publisher name HOT 3
- [BUG] Cant sign dlls exes inside my MSIX when creating a published package to microsfot store HOT 3
- [BUG] Unable to compile on Linux / Clang 16.0.6 HOT 2
- Help in including Visual C++ redistributable in a .msix package HOT 1
- [BUG] AddPackageByAppInstallerFileAsync causes crash when compiling for x86 on an ARM64 system
- OpenSSL 1.1 is EOL'd
- [BUG] Schemas need a refresh HOT 2
- [BUG] MSIX doesnt built in Azure DevOps Task HOT 6
- UnauthorizedAccessException on PackageManager.AddPackageAsync
- [Question] Microsoft - why do you hate developers? HOT 5
- [BUG] Inconsistent Zip Structure in .appx Files Created by makemsix.exe Compared to MakeAppx.exe
- [BUG] Build Error on Windows 10 with Visual Studio 2017 Enterprise
- [Question] Distribute appinstaller and MSIX via Azure blob storage? HOT 6
- MSIX Windows 10 does not allow to install nor auto-update when publisher changes
- [Question] How to pass AAD auth parameters in MSIX Authentication HOT 4
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-packaging.