desktop-bridge

Proper way to upgrade WPF program settings on program update (Desktop Bridge/Project Centennial)

时光总嘲笑我的痴心妄想 提交于 2019-12-10 11:56:18
问题 When it was a clickonce program it worked, but then I made an appxpackage and exported it as a centennial app for windows store and the upgrade does not work any more. Right now I have in App.xaml.cs protected override void OnStartup(StartupEventArgs e) { if (myprog.Properties.Settings.Default.UpgradeRequired) { myprog.Properties.Settings.Default.Upgrade(); myprog.Properties.Settings.Default.UpgradeRequired = false; myprog.Properties.Settings.Default.Save(); } With UpgradeRequired as a bool

DesktopAppConverter (DAC) says the expanded image is invalid, when I try to convert my app

拥有回忆 提交于 2019-12-10 10:44:35
问题 I have downloaded the .wim file that matches my Windows version (14393) and gone through the process of setting up the converter. So, I have the converter app running on my machine. When I attempt to run a conversion, I get error message E_EXPANDED_BASEIMG_INVALID. I have tried to get rid of the expanded image by run DAC with the -Cleanup ExpandedImage parameter, but it fails to clear it. Have you managed to replace the expanded image? The files are quite large and I cannot keep adding

Desktop App Converter with InstallShield installer - W_DISCOVERED_EXE_NOT_FOUND

扶醉桌前 提交于 2019-12-08 09:39:59
问题 I am trying to convert to UWP my desktop application Computator.NET (written in WinForms) which is using InstallShield for it's installer but DAC does not seem to find executable. It looks like it thinks that exe file is some temporary installer file. Log from the process is below: WARNING: DesktopAppConverter : warning 'W_PACKAGE_DEPENDENCY_ADDED': A dependency on framework package 'Microsoft.VCLibs.140.00.UWPDesktop' was added to the AppxManifest.xml. See 'http://go.microsoft.com/fwlink/

How to launch .exe app with parameter uwp

≡放荡痞女 提交于 2019-12-08 05:28:52
问题 I know we can use LaunchFullTrustProcessForCurrentAppAsync(String) method and <desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe"> <desktop:FullTrustProcess> <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/> <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/> </desktop:FullTrustProcess> to launch and send parameter to win32 app. But my big question is: How to receive that parameter in my win32 app (in my case win32 app is my

How to launch .exe app with parameter uwp

别等时光非礼了梦想. 提交于 2019-12-08 04:52:28
I know we can use LaunchFullTrustProcessForCurrentAppAsync(String) method and <desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe"> <desktop:FullTrustProcess> <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/> <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/> </desktop:FullTrustProcess> to launch and send parameter to win32 app. But my big question is: How to receive that parameter in my win32 app (in my case win32 app is my Console Application). Does anyone has any help. thank you. Update for Stefan answer in win32 app always

UWP application not going to suspend state

点点圈 提交于 2019-12-08 04:23:31
问题 In my UWP application I am using app service as in process background task to communicate with the win32 application to get the information.My application is not even going to suspend state. It always stays in the running state.But when i kill my win32 application it is going to suspend state. For making application to suspend state followed steps in How to make UWP app to suspend and resume state I also tried with the Samples provided by microsoft in git https://github.com/Microsoft

UWP run Exe file with Parameters

此生再无相见时 提交于 2019-12-07 19:01:28
问题 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

UWP Desktop Bridge & Local App Data virtualized folder location

自闭症网瘾萝莉.ら 提交于 2019-12-07 17:49:09
问题 I am in the process of converting a Win32 app (Zoom Player) to the UWP AppX model using the " Desktop Bridge " conversion tool. Under the folder model introduced in Windows VISTA, the application's files that do not require create/write access are installed under the " Program Files " folder and files that require create/write access are Installed under the LocalAppData folder (" C:\Users\bLight\AppData\Local " when calling the " SHGetKnownFolderPath " WinAPI function with the FOLDERID

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

流过昼夜 提交于 2019-12-07 05:09:44
问题 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

UWP app does not copy file to AppData folder

泄露秘密 提交于 2019-12-06 14:48:44
I made a C# executable which make a test folder and copy test.txt file from it's execution folder to AppData folder. Here is my code: static void Main() { string fullPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\test"; string destination = $"{fullPath}\\test.txt"; Directory.CreateDirectory(fullPath); string location = System.Reflection.Assembly.GetExecutingAssembly().Location; int index = location.LastIndexOf("\\"); string source = $"{location.Substring(0, index)}\\test.txt"; File.Copy(source, destination); } Then I make appxmanifest.xml file using the