User Profile
Martin82
Copper Contributor
Joined 6 years ago
User Widgets
Recent Discussions
MSIX runtime behaviour and keyboard messages
Hello, we are deploying a .NET 6 WPF Desktop Application via MSIX. So far everything worked great, but we hit a problem with the virtualization/sandbox of keyboard events. We have a custom WPF control, that displays a grid when the user types (like a search combobox). While the user is typing, the search results are updated accordingly. The problem arises, when this update takes longer than about 50-100ms. All characters that are typed during this update are lost. The window-messages (KeyDown, KeyUp, ...) never fire on the control (or even the whole window). When the exact same binary is launched via windows explorer (exe is started), the problem goes away. Keyboard Events (Window Messages) are queued until the ui thread is available and processed correctly. From reading up on stackoverflow and github, I assume there is some kind of keyboard virtualization / sandboxing when the App is started and this part ignores all keyboard events when the UI thread is busy for too long. We tried modifying the runtime behaviour with "Executable, RuntimeBehavior="win32App" TrustLevel="mediumIL"", but it doesn't have any effect on this problem. My question: Is there any other way I can modify my MSIX so that the application starts as a normal windows executable without any keyboard virtualization / sandbox? Thanks and kind regards, Martin581Views0likes1CommentRe: UpdatePackageAsync fails with FileNotFoundException
Thank you for your ideas! 1) No, I don't see any requests in the log. I also tried fiddler to trace outgoing traffic, but also didn't see any requests or request attempts. 2) No, Just . _ / [a-z] and [0-9] but I'll try even simpler Uris ones after the holidays. 3) its a direct https:// url to a MSIX File, without the appinstaller.1.4KViews0likes0CommentsUpdatePackageAsync fails with FileNotFoundException
Hi everyone, I'm trying to update an MSIX installed .netcore3.1 application using the Windows.Management.Deployment.PackageManager), with the following source code: var installTask = packagemanager.UpdatePackageAsync(new Uri(downloadUri),null, DeploymentOptions.ForceApplicationShutdown | DeploymentOptions.ForceUpdateFromAnyVersion ).AsTask(downloadProgress); The operation immediately the new package) fails with a FileNotFoundException and the Error Code 0x8007002 . (System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002)) The Filename Property of the Exception is unfortunately empty. The new downloadUri is reachable from browser without authentication. Is there a way to debug the UpdatePackage Operation or gather more Details? I tried Get-AppXLog, but it didn't contain any entries for the relevant time period. Thanks! Martin1.5KViews0likes2CommentsRe: MSIX doesn't obtain trusted root certificate automatically
John_Cote: Not, unfortunately it only shows "Untrusted App" and the "x" mark when trying to install the MSIX. But as soon as the certificate is viewed in Windows (without installing), the same MSIX file changes to "Trusted App" and the user can install the software.4.2KViews0likes0CommentsMSIX doesn't obtain trusted root certificate automatically
Hello, our client has purchased a code signing certificate from a trusted root CA (GLOBALTRUST). The certificate is valid, and Windows 10 also automatically recognizes the the trusted root CA and installs (downloads) the appropriate root certificate automatically as soon as I view the certificate details. But when trying to install a msix package with this certificate on a fresh Win 10 machine, Windows fails to automatically download the root certificate and hence won't allow end users to install the package. Is this a missing implementation in msix or are there some additional settings for the app package / msix to avoid this problem? thx and br, Martin4.4KViews0likes3CommentsRe: MSIX automatic updates and authentication
HiTanaka_Jimha , yes, thats exactly what we want to achieve. We produce about 4-6 Versions of our desktop products per year, but there are dependencies on external services and databases, so we can't roll out the update for everyone at the same time. (And some updates need our consulting colleagues, and so we have to enable the update per customer after the preparation is done). During writing this reply, I found a documentation https://docs.microsoft.com/en-us/windows/msix/non-store-developer-updates for manual updates with the package manager. I'm not sure when the capabilities to use http-Uris for AddPackageAsync where added - the documentation still stays only local file shares are supported - but it seems we can use this, instead of the authentication. I'll try it out sometime in the future, but it looks like we don't need the authentication anymore. Thanks, Martin4.8KViews0likes0CommentsRe: MSIX automatic updates and authentication
HiTanaka_Jimha , thx for your reply back in January. I've checked a few sources about msix development, but couldn't find anything about this. Do you have an update or can you point me at some alternatives how to implement customer specific versions with automatic updates? thx and br, Martin4.9KViews0likes2CommentsMSIX automatic updates and authentication
Hello everyone, we recently started using MSIX with the automatic updates and made great progress in a short time. Our business would like change all our products from standalone MSI to MSIX with automatic updates, but one thing we need is different versions for specific customers (depending on the contract type). The package flighting concept in the microsoft store sounds like what we wan't to achive. I tried to achieve this, with using an azure webservice as the update source, which returns the correct package for the customer. I got the service to run and it works, but as soon as I enable authentication (Azure AD) on it, windows can't download the package and displays an generic error message ("An error occurred while accessing the file from the web") during appinstall / update. Is there any way to enable authentication on the update url or achieve customer specific update streams? thanks and best regards, MartinSolved5.6KViews0likes9Comments
Recent Blog Articles
No content to show