User Profile
SahibiMiranshah
Joined 6 years ago
User Widgets
Recent Discussions
Re: Context menu regsitration
Schema docs for context menu handler can be found here https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop9-fileexplorerclassiccontextmenuhandler https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop9-fileexplorerclassicdragdropcontextmenuhandler1.7KViews0likes0CommentsRe: Question about MSIX features
omikhailov We should start background work right after installation, but UWP app must be launched at least once to register Background Task. Does MSIX provide any option to activate UWP app right after the installation? Not really. PreinstalledConfigTask and UpdateTask do just this but PreinstalledConfigTask is restricted to preinstalled packages. If it doesn't, we will have to use Windows Service and it is really great that MSIX team added support for Windows Services in the new versions of this tool. But does it support auto updates for Windows Services, or this feature works for UWP only? Can you please clarify what auto-update means here? It can be updated but the expectations are not clear. Since we need to have that app working with local instance of SQL Express, we must add network loopback rule to grant UWP app access to SQL Server. Is it possible to execute "checknetisolation loopbackexempt" command as part of app deployment process? Not Really. CustomActions are the only option for this but it is highly discouraged. Can we use MSIX to deploy and update SQL Express databases too? I guess we should execute SqlPackage.exe for DACPAC deployment or sqlcmd.exe to run SQL scripts, but is it possible to run such commands during installation process? Generally scripts running during deployment are not supported. Can one MSIX package contain multiple artifacts? It would be nice to have one MSIX package for UWP app, Windows Service and SQL database. Probably, this is already too much for one package, but wouldn't it be possible to run silent installation of SQL Express from the same package too? Possibly. Though coupling a service to a UWP will cause an unnecessary friction in the servicing pipeline. i.e. UWP cannot update because the service fails to shutdown or vice versa.1.2KViews0likes0CommentsRe: Context Menu in MSIX packaged application.
GauravTamkoria legacy IContextMenu context menu support is now available in insider builds (Support legacy context menus - MSIX | Microsoft Docs) This feature is not in retail builds yet. Please let us know if you have follow up questions.2.4KViews0likes0CommentsRe: MSIX: How to handle Context menu in notepad ++ application?
TIMOTHY_MANGAN context menus work for Notepad++ when packaged. Try adding this to the app manifest: xmlns:desktop9="http://schemas.microsoft.com/appx/manifest/desktop/windows10/9" xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" <Dependencies> <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.21301.0" /> </Dependencies> <Extensions> <com:Extension Category="windows.comServer"> <com:ComServer> <com:SurrogateServer DisplayName="Notepad++ Shell Extensions"> <com:Class Id="B298D29A-A6ED-11DE-BA8C-A68E55D89593" Path="VFS\ProgramFilesX64\Notepad++\NppShell_06.dll" ThreadingModel="STA" /> </com:SurrogateServer> </com:ComServer> </com:Extension> <desktop9:Extension Category="windows.fileExplorerClassicContextMenuHandler"> <desktop9:FileExplorerClassicContextMenuHandler> <desktop9:ExtensionHandler Type="*" Clsid="B298D29A-A6ED-11DE-BA8C-A68E55D89593" /> </desktop9:FileExplorerClassicContextMenuHandler> </desktop9:Extension> </Extensions> When you specify to use this new surrogate server in the appxmanifest, Shell creates the surrogate server out-of-proc and this server will handle creating custom IContextMenu COM object and handle data marshalling.3.6KViews3likes0CommentsRe: MSIX: How to handle Context menu in notepad ++ application?
shreedhar_ghare legacy IContextMenu context menu support is now available in insider builds (Support legacy context menus - MSIX | Microsoft Docs) This feature is not in retail builds yet. Please let us know if you have follow up questions.3.5KViews0likes2CommentsRe: MSIX Packageing Tool / signtool certificate issues
Mo_Velayati The subject string in a cert must exactly match the string in the appxmanifest file. There is no workaround for this restriction. You could either update the appxmanifest Publisher field, for example, Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" or acquire a new cert to match the Publisher in the appxmanifest file if you cannot change the appxmanifest.6.8KViews0likes6CommentsRe: MSIX Packageing Tool / signtool certificate issues
TIMOTHY_MANGAN The publisher string entered by you needs to match exactly the string extracted from the cert. This Windows API function documentation lists some of the recommendations in the Remarks section https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certnametostra#remarks To extract the right publisher from your cert subject, you could use the MSIX Packaging Tool's editor to sign a package and see what it puts in the manifest. Or you could use the following C# code or Powershell commands: X509Certificate cert = new X509Certificate(); cert.Import(certificatePath, certificatePassword, X509KeyStorageFlags.DefaultKeySet); string publisher = cert.Subject; (New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 cert.pfx).Subject Replace cert.pfx with your cert name. If it is password protected, use cert.pfx,password. Let us know if this helps.6.9KViews0likes8CommentsRe: MSIX + Cake publish
Alex-Gipp You can use our command line tools to create the package (https://docs.microsoft.com/en-us/windows/msix/package/manual-packaging-root ) from your cake script as long as you have the Windows SDK for the packaging and signing tools. https://github.com/SharpeRAD/Cake.Powershell#usage https://stackoverflow.com/questions/47515919/is-it-possible-to-call-powershell-command-from-within-cake-task1.1KViews0likes0Comments
Recent Blog Articles
No content to show