After trying various solutions, I no longer use the publish function. Instead, I use the compile button on the toolbar, then package the compiled files into a Zip file.
If the user's computer already has the .NET 8 runtime installed, the program runs without any issues. However, if the runtime is not installed, launching the program will prompt the dialog box shown in Figure 01. Clicking the Yes button will bring up the dialog box shown in Figure 02.
https://i.postimg.cc/P5Ct5VDK/01.png
https://i.postimg.cc/nrVxb3Z4/02.png
The problem is that the dialog boxes and the opened web pages are not in the localized language, which is neither user-friendly nor convenient.
My idea is to display only one dialog box with customizable description text in the localized language. For example:
"To run this program, you need to install the .NET 8 x64 desktop runtime. Do you want to download and install it?"
When I click the Yes button, the .NET 8 runtime files will be silently downloaded and installed, and then the program will launch.
This approach is simple and user-friendly.
I don't want to use third-party packaging programs; the process is somewhat cumbersome.
My idea is to embed the localized UI text as resources in the exe file and read them when needed. I'm not sure if this is possible to implement.
If the user's computer already has the .NET 8 runtime installed, the program runs without any issues. However, if the runtime is not installed, launching the program will prompt the dialog box shown in Figure 01. Clicking the Yes button will bring up the dialog box shown in Figure 02.
https://i.postimg.cc/P5Ct5VDK/01.png
https://i.postimg.cc/nrVxb3Z4/02.png
The problem is that the dialog boxes and the opened web pages are not in the localized language, which is neither user-friendly nor convenient.
My idea is to display only one dialog box with customizable description text in the localized language. For example:
"To run this program, you need to install the .NET 8 x64 desktop runtime. Do you want to download and install it?"
When I click the Yes button, the .NET 8 runtime files will be silently downloaded and installed, and then the program will launch.
This approach is simple and user-friendly.
I don't want to use third-party packaging programs; the process is somewhat cumbersome.
My idea is to embed the localized UI text as resources in the exe file and read them when needed. I'm not sure if this is possible to implement.