I have a client WPF app that uses NativeMessagingHost feature in Chromium browsers.
I've packaged my WPF app into Windows Store Package (.appx) via Desktop Bridge using VisualStudio to publish it in Windows Store in the future.
My app works correctly from Store package. Creates ChromeManifest.json file. But cannot link manifest to chrome NativaMessagingHost name via registry.
Desktop Bridge Apps cannot modify HKCU\Software\Google\Chrome\NativeMessagingHosts\. This is allowed but it's modified in sandbox (proof), so chrome do not see the registry value.
Result: chrome extension cannot find NativeMessagingHost.
NOTE: If I change the registry value to valid value manually via regedit.exe - everything works fine!
So, is there any way/workaround to modify registry key or link ChromeManifest.json from Desktop Bridge App? Maybe on package install?
This is not allowed from a Store app. You would also need to take care of the Chrome-specific registration when the user installs/registers the app as Chrome extension.
Related
We're making a new application using WPF .Net Core. To use the auto update function we decided to pack it with the MSIX Packaging Tool as a UWP App in VS2019. I was able to host the appinstaller File on an IIS and to Install the App over a link to that file over the web. Auto updating is also working fine.
Now to the problem:
When I run the installed App it's icon is not showing in the task bar but it is shown in the Task-Manager using a lot of cpu. In the Process Monitor it shows that the App tries to access its dependencies (like PresentationFramework.dll) but is not successful as the result is always "File locked with only readers". The DLL itself is present in the WindowsApps/xxx/ Path. Also I can not start the EXE manually as my user do not have the rights. What am I missing here?
Edit: Also I realized now that my app is only starting as a background process in the task manager and not as an app. When I go to the app directory under WindowsApps/xxx/MyApp I can not start the EXE directly because of no rights as mentioned before. But when I copy the whole folder I can start the EXE, the GUI appears and the app is an app again in the task manager.
We found an answer. As the GUI is a WPF .Net Core Project and we make the setup with a Windows Application Packaging Project to generate a UWP App from it the technology used seems to be the so called Desktop Bridge.
In the process monitor it seems that it tries to access the files under the correct path but somehow it does it not in the right way as long as the application path is not set correctly in the WPF Projects App.xaml.cs.
To fix this use the solution from Andrew Leader
Where is the current location of the log/dump files from using WACK? Does WACK by default generated them or do you have to manually run WACK to generate them?
Generally, if you're using Visual Studio, you can run the Windows App Certification Kit when you create your app package. See Packaging UWP apps to learn how. In this case, the Windows App Certification Kit creates an HTML along with XML reports and saves it in the path:
C:/Users/UserName/AppData/Local/Microsoft/AppCertKit/
The HTML file name should be ValidationResult.htm.
But if you don't want validate your Windows app when you package your app, you can validate your app later by launching the Windows App Certification Kit directly. See Validate your Windows app using the Windows App Certification Kit interactively to get the steps. When you use this way, you need to select the path to the folder where you want to save the test report(the XML file) at the prompt after the test, but the ValidationResult.htm file is still in the path: C:/Users/UserName/AppData/Local/Microsoft/AppCertKit/
I have been using codenameone to develop an app which I have tested on android, and wish to do so on iOS. I have a paid Apple Developer account, and am able to go through the signing wizard correctly and the "iOS Signing" page is filled out with all of the information.
However, when I come to build an iOS development build, during the ant process the console logs
A certificate from Apple with the appropriate password is required for building an iOS native app!
This is odd, as the information that was filled in was created from the wizard with no errors. On th Apple Developer account page I can see all of the certificates and devices etc...
For some reason, (even when I clicked "browse") when I selected the certificate files it would change the path to my JDK installation
/Library......bin/<selected file>
This is odd, but I ended up fixing it by manually creating the certificates (being unaware of the certificate password.) Trying now, it [the certificate creator] works fine (as long as I change the path once it has finished). It wouldn't allow any full path (IE /Users/....), and would only allow relative paths to the project folder. So when I set the location to the "iosCerts" folder, it worked fine.
iosCerts/<selected file>
This possibly may be an IntelliJ / Mac bug?
I have Apple ID. When I am trying to Send IOS app store build in MAC system, I am getting Build Error.
I have created certificates for this, might be this step leads to error{ created certificate with device UDID}.
Please help me on how to create certificates and send IOS store build.
Thanks in advance.
you can directly this all features directly by using netbean. There is wizard "Generate" for ios from which you can create development certificate as well as provision profile. You can also add devices by using the wizard in ios tab.
I have built a C# WPF Application in Dot Net Framework 3.0 and published thru Click Once Application via localhost IIS in my system. My system placed in FileServer1 Domain and all the systems under FileServer1 can able to install the application. But we can not able to install it under different domain FileServer2.
While clicking the Install button, it will show that Installation file was missing. Please help me out how to proceed with this issue.
While publishing the file, I have given as http:\10.xxx.xx.xx instead of localhost. Now its working in all the domains.