question

ShirlyLiu-5920 avatar image
0 Votes"
ShirlyLiu-5920 asked AdrianMoisii-9060 answered

The ClickOnce always was asking to "Do you accept the terms of the pending License Agreement" for the .Net Framewrok 4.8, even if I have installed the .Net Framewrok 4.8.

Recently, I upgraded the ClickOnce project from .net framework 4.72 to 4.8 and published the project. I download the latest ClickOnce Setup, it was always asking the "Do you accept the terms of the pending License Agreement" for the .Net Framewrok 4.8, even if I have installed the .Net Framewrok 4.8.

I would expect this window to appear only once. Once the .net framework 4.8 is installed, it shouldn't appear anymore.

The Visual Studio 2019 version is 16.7.2

20380-20200826.png


windows-forms
20200826.png (19.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered DanielZhang-MSFT commented

Hi Shirly Liu,
Based on your description, it doesn't related to the installation of .net framework 4.8.
This is due to the addition of “End User License Agreement” (EULA)to clickonce.
And this is why it shows an EULA (End-User License Agreement) window before installing the application with Clickonce.
Meanwhile, it displayName is "Microsoft .NET Framework 4.8(x86 and x64)" which caused your misunderstanding.
The only way to get ELUA at the beginning of the ClickOnce installation process is to use it as a predetermined component.
So you can also find it under properties-> publish-> prerequisite dialog->"Microsoft .NET Framework 4.8(x86 and x64)".
The "Accept' or "Don't accept” button on the EULA window means to install or not install the application.
Best Regards,
Daniel Zhang

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Many Thanks @DanielZhang-MSFT

I selected the "Microsoft .NET Framework 4.8(x86 and x64)" as a prerequisite component, such as you said.
I think this popup windows should appear only once when it is first installed. When the user installs the upgrade version or the .NET 4.8 has installed, this popup window should not appear.

Before, I selected the "Microsoft .NET Framework 4.7.2(x86 and x64)" as a prerequisite component, does not show this popup window, so I wonder why it always appears.

Thanks again.

0 Votes 0 ·

Hi Shirly Liu,
This popup window is an EULA (End-User License Agreement) window,which is used to remind you whether to accept the end user license agreement.
It is because you added this component (EULA)that there will be this pop-up window instead of this pop-up window for you to download this component.
Please refer to these threads and you can know EULA better.
Clickonce ask for a License agreement
Show EULA in ClickOnce
Best Regards,
Daniel Zhang


1 Vote 1 ·
AdrianMoisii-9060 avatar image
0 Votes"
AdrianMoisii-9060 answered

Hello,

Bringing this back to life, as the issue still persists. I understand showing the .NET framework 4.8 EULA window if .NET framework 4.8 needs to be installed on that computer, but why showing it each time, even if .NET framework 4.8 doesn't need to be installed?
.NET framework 4.8 is set as prerequisites in Visual Studio setup project.
If any other prior .NET framework package is selected as prerequisite, the EULA window doesn't show if that .NET framework is already installed.
Is this the normal behavior?

102052-image.png



image.png (36.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HelderOliveira-8089 avatar image
0 Votes"
HelderOliveira-8089 answered

Hi,
I have the same problem, when the user install a upgrade version should not show the window EULA.

Best Regards!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.