WPF ClickOnce app have wrong start menu icon after update. - wpf

I have a WPF ClickOnce application where all the icons have been changed including the Application icon in Properties -> Application -> Icon and Manifest.
When installing the udated WPF app, where the updated version of the app is detected when running the original app, all icons are updated except the icon in the Start Menu (Windows 10 PC).
NOTE: Running the installation on a clean PC with no previous installation of the app will update the Start Menu icon to the new icon.
I have tried deleting the IconCache.db in %LocalAppData% and restarted the PC, but it is still the old Start Menu icon that is used.

Related

How do I prevent Electron from launching an additional instance in a new browser window?

npm start is launching my React/Electron application in two different windows: One window is a native desktop window, and the other window is a Chrome browser window. I only want one instance of the application launch in a native desktop window.
Add the setting BROWSER=none to the .env file of the React application.

Webview runtime setup while wpf app installation

I am deploying my wpf exe file using VS 2019 setup project. I am using webview2 in my wpf and I am able to see the result however my client machine is not able get any result .
Is there any way apart from what is mentioned in webview runtime documents mentioned by Microsoft.
Any simple way to install webview while user is installing the wpf setup ?
You can refer Webview distribution
There are 2 way to get the root cause,
just check app.exe.Webview2 folder is generated in your exe folder path.
is webviewloder.dll is present or not ?
and if you want simple way to install the webview2 while installation then just download the microsoftWebviewSetup.exe and include the exe file in your custom action
steps:
create a setup project
in application folder add your wpf exe and webview2 exe
right click on project -> View -> custom action
open the custom action -> Install -> add the webView2.exe
run the setup.exe it will install the webviewruntime also

How to debug react native apps in visual studio code?

I am using visual studio code IDE to develop react native app and am not using expo library.
Before that I was working on the android studio, debugging in that is straightforward and simple.
Now for react-native, I wanted to know how to debug my app using visual studio code IDE?
If you want to debug the app in VS Code itself, like in other IDEs. Then on approach can be to follow the following steps:
Install React Native Tools Extension (provided by Microsoft) to VS Code.
This is a nice add on to VS Code's capabilities for React Native.
Then go to Debug option from left menu and click on Add Configuration.
If it initially says No Configuration then you can click on Add Configuration and then choose React Native option.
Now if already have Launch configuration added, then you can click on Add Configuration button then you will see more options related to React Native.
You can add configurations for React Native: Attach to Packager, React Native: Debug to Android, React Native: Debug to iOS in your launch.json file. It is present in .vscode folder.
Then add your breakpoints in code. Now suppose you already have your app running on emulator then you can choose option Attach to Packager.
Then on emulator or device open developer options (Ctrl + M for Windows + Android) and click on Debug JS Remotely.
Now your breakpoints should be working. Similarly if your app wasn't working already then you can go for Debug Android or Debug iOS accordingly.
Step1: Open app Setting in your mobile by shaking your mobile or by typing this command in your machine if your running android.
adb shell input keyevent 82
Step2: Select Debug JS Remotely which is the second option.
Step3: In your Browser type Url http://localhost:8081/debugger-ui/
Step4: Again Open App Setting by shaking or running the command shown in step 1 and select Reload option which is first option
Now You can get all console logs in the browser and also you can debug your app remotely by putting breakpoints and analyze the values step by step.

Distribute apcahe corvoa windows 10 cause error Either you need a new certificate installed for this app package, or you need a new app

i have build ionic apache cordova app using visual studio 2015 , below is my ionic app info
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed
according to cordova documentation
Signing is required for distributing and installing Windows Store
apps. This process is normally handled by Visual Studio when you
deploy a package for release
here is content of my build.json
{
"windows": {
"release": {
"packageCertificateKeyFile": "res\\native\\windows\\CordovaApp.pfx"
}
}
}
and here is output of build in windows explorer
and here the content of CordovaApp.Windows10_1.0.0.1_x86_Test folder
i have enabled sideLoading in windows
but whenever i run the app i get theis error
so what is wrong with the app , and how can i distribute it without windows app store .
thanks.
what is wrong with the app , and how can i distribute it without windows app store.
From the error message there is something wrong with your certificate file. Please remake your .pfx file following the steps by How to create an app package signing certificate.
By Cordova App there is something to notice: Please make sure the publisher name is identical with your app's publisher name(it's "[Country Code]=Apache Cordova Team" by default.).
Looks like you need to import this certificate on this machine, please follow these steps:
In File Explorer, right click an appx that you've signed with a test cert and choose Properties from the context menu.
Click or tap the Digital Signatures tab.
Click or tap on the certificate and choose Details.
Click or tap View Certificate.
Click or tap Install Certificate.
In the Store Location group, select Local Machine.
Click or tap Next and OK to confirm the UAC dialog.
In the next screen of the Certificate Import Wizard, change the selected option to Place all certificates in the following store.
Click or tap Browse. In the Select Certificate Store window, scroll down and select Trusted People and click or tap OK.
Click or tap Next. A new screen appears. Click or tap Finish.
A confirmation dialog should appear. If so, click OK. If a different dialog indicates that there is a problem with the certificate, you may need to do some certificate troubleshooting.
Double-click .appx to install
See also How to troubleshoot app package signature errors

Desktop Icon in installation package - Windows Install Package

I have successfully packaged up my application to be deployed and installed on a windows workstation. After installing the application on my computer, the desktop icon does not have my app's icon as a graphic. (It has a generic windows icon).
I am using Visual Studio 2008 to make this install package.
Any ideas how I can include a desktop icon in my install package?
Shortcut icons are not set automatically. So make sure you set an icon in "Icon" field from your shortcut's Properties pane.
If an icon is set and it's still not shown, try setting it manually after installation to see if the icon is valid.

Resources