desktop-bridge

Delphi FireMonkey - Setting Wallpaper on Win 10 does not work when deployed as APPX

冷暖自知 提交于 2019-12-06 13:12:54
I have created a simple application using Delphi 10.2 Tokyo (using FireMonkey) that displays images and allows you to set the desktop wallpaper for a selected image. The main code that sets the desktop wallpaper is: class procedure TUtilityWin.SetWallpaper(AFileName: String); begin SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, pChar(AFileName), (SPIF_UPDATEINIFILE OR SPIF_SENDWININICHANGE)); end; While this works great when the application runs on the desktop (as a standalone install), it fails when run as an APPX (during the certification process) of submitting to the Windows 10 App Store.

UWP run Exe file with Parameters

你说的曾经没有我的故事 提交于 2019-12-06 12:21:26
on UWP, I want to run a Exe file with parameter. Here is an example. process.exe filename.txt this Command line application process the text file and output a result file as Text. My Question is How to pass the parameter. I success to run Exe file on UWP, but the input full path for filename maybe wrong and failed. in ViewModels, await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("spectrum"); in Package.appxmanifest <Extensions> <desktop:Extension Category="windows.fullTrustProcess" Executable="Assets\identify\process.exe" > <desktop:FullTrustProcess> <desktop

System.BadImageFormatException in UWP with WPF desktop bridge package

廉价感情. 提交于 2019-12-06 10:31:21
问题 I''ve fully and detailed described problem and question in this topic System.NullReferenceException in AppServiceResponse and System.BadImageFormatException of UWP with WPF desktop bridge package, but still have no found answer, what can cause this failure. Topic link to Windows Dev Center above describes assembly, shows all used code with examples, including attempts to fix problem, and other details. So I will put only basic part of task in this stackoverflow topic to avoid text overload in

How to specify parameters for the executable file in a StartupTask

為{幸葍}努か 提交于 2019-12-06 03:07:00
When desktop applications set to run on startup, they usually start minimized to system tray. The common approach to implement this behavior is an special parameter for the executable when adding a shortcut to the Startup folder or registry: MyApp.exe /startminimized I need the same thing in a converted desktop app. Thanks to the StartupTask , I'm able to run the executable of the app on startup: <desktop:Extension Category="windows.startupTask" Executable="MyApp.exe" EntryPoint="Windows.FullTrustApplication"> <desktop:StartupTask TaskId="MyStartupTask" Enabled="true" DisplayName="Some

Can a Java Swing desktop application be converted to a UWP centennial app (AppX)?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 11:14:39
I have been reading about project centennial ( https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-root#preparing-your-desktop-app-for-conversion-to-uwp ), and it occurs to me that there are many legacy line-of-business apps that are written in Java (not to mention Python/Tkinter, insert language/gui toolkit here , etc). I can see a benefit in being able to market/distribute these through the Windows store (either internally for an enterprise or to the general public). I was wondering if it is possible to turn a Java application into an AppX bundle (possibly using something like

Desktop App Converter

天大地大妈咪最大 提交于 2019-12-05 05:41:01
问题 I have been using Desktop Bridge for some time and recently I have started experiencing a problem. It stopped building the packages. I have tried to install it on different Virtual Machines but I have been getting the same error. PowerShell Error Record: DesktopAppConverter : error 'E_STARTING_ISOLATED_ENV_FAILED': Failed to start the isolated environment. See inner exception for more details. PowerShell Stack Trace: at RaiseUserException, C:\Program Files\WindowsApps\Microsoft

Minimum version of Windows for Centennial Apps

点点圈 提交于 2019-12-04 19:20:52
What is the minimum version of Windows to be able to run Centennial Apps from the Windows Store? Minimum version of Windows to use desktop bridge apps is Windows 10 Anniversary Update . This is Version 1607 (OS Build 14393 ). This is because desktop-bridge requires containers feature which is only available since Windows 10 Anniversary Update. Keep in mind however that developer can target higher version of Windows through MinVersion field under TargetDeviceFamily tag inside AppxManifest.xml. Here is example of targeting Windows 10 Anniversary Update: <Dependencies> <TargetDeviceFamily Name=

Determine if C++ application is running as a UWP app, with legacy support

让人想犯罪 __ 提交于 2019-12-04 18:40:48
My first thought was to use GetPackageFamilyName() and look for ERROR_SUCCESS vs APPMODEL_ERROR_NO_PACKAGE . But, I need to support Windows 7, which makes GetPackageFamilyName() unusable. Is there a decent alternative method? Anything in the Registry, perhaps? Use GetProcAddress() to load GetPackageFamilyName() dynamically at runtime, eg: typedef LONG WINAPI (*LPFN_GPFN)(HANDLE, UINT32*, PWSTR); bool bIsUWP = false; LPFN_GPFN lpGetPackageFamilyName = (LPFN_GPFN) GetProcAddress(GetModuleHandle(TEXT("kernel32")), "GetPackageFamilyName"); if (lpGetPackageFamilyName) { UINT32 size = 0; if

Send speech recognition args.Result as parameter in UWP desktop-bridge package

拜拜、爱过 提交于 2019-12-04 06:16:12
I'm trying to figure out, if it is possible send using Windows.Media.SpeechRecognition; args.Result.Text as parameter from UWP to Console application. For example by following scenario I'm sending TextToSpeech(args.Result.Text); with args.Result.Text; value, where using Windows.Media.SpeechSynthesis; text-to-speech pronounces the recognition result each time when args.Result.Text; appears. textBlock2.Text = args.Result.Text; also displays result: private async void ContinuousRecognitionSession_ResultGenerated( SpeechContinuousRecognitionSession sender,

Launch powershell script from UWP app with FullTrustProcessLauncher class

不羁的心 提交于 2019-12-03 21:15:55
问题 Is there a way to launch powershell script from my UWP app ? I have read that we have to use the FullTrustProcessLauncher class but I don't understand how to use/implement it. Do you have any idea ? 回答1: Docs: https://docs.microsoft.com/en-us/uwp/api/Windows.ApplicationModel.FullTrustProcessLauncher Samples: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/AppServiceBridgeSample https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples