Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET (8) installation does not wait to be finished #43

Closed
4 of 5 tasks
peter-sabath opened this issue Mar 18, 2024 · 5 comments
Closed
4 of 5 tasks

.NET (8) installation does not wait to be finished #43

peter-sabath opened this issue Mar 18, 2024 · 5 comments
Labels
invalid This doesn't seem right

Comments

@peter-sabath
Copy link

Version

latest NuGet Package (2.5.2)

Variant

GUI (Graphical User Interface)

Platform

.NET 8.0 / WIndows 10

Steps to reproduce

I de-installed the .NET 8 (Desktop) Runtime, and removed the 8.0.x folder in the shared runtimes. I also removed the registry keys at HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx...
Now when starting the App, the Bootstrapper detects the runtime as missing, downloads it, and starts the installer. I get the UAC prompt, but as soon as I accept the installer closes and the App/Bootstrapper complains about the missing runtime. The expected folders were not recreated, I need a manual "repair" install to get the runtime working again.

Details

Expected:
I expect the application start to be waiting until the installation is done. especially according to your flowchart, the required runtime should not be detected after install.

Actual:
I get the message box complaining about the missing .NET 8 runtime and listing the other existing ones.

Checklist

  • I have looked through existing issues to make sure that this bug has not been reported before
  • I have provided a descriptive title for this issue
  • I have made sure that this bug is reproducible on the latest version of the package
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
@peter-sabath peter-sabath added the bug Something isn't working label Mar 18, 2024
@peter-sabath
Copy link
Author

The same problem is also present if I use the CLI-based version same text in console like in the message box

- Target: O:\adx-net8\bin\PublishMyApp\MyApp.dll
- Arguments: [/install]
- Status: -2147450730
- Error: You must install or update .NET to run this application.

App: O:\adx-net8\bin\PublishMyApp\MyApp.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.28 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  7.0.17 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=win-x64&os=win10```

@Tyrrrz
Copy link
Owner

Tyrrrz commented Mar 19, 2024

Hmm, I could not reproduce this issue. Does the same happen to you with .NET 7?

@peter-sabath
Copy link
Author

Yes, the same happens to me when targeting .NET 7. Is there a good way to properly uninstall a ,NET Runtime you know of?
.NET 7 is not even listed in "Apps & Features".
But further tests point into the direction that it is not a problem of waiting for the process to finish, but with the installation itself.
If I remove the Registry keys and folders and then manually running the installer it behaves equally strangely. It installs without writing the files and finishes immediately. Only doing a repair installation gets the files back.

I thought I could test it on my (dev) machine, but it seems the only way to test it is to have a clean VM, that needs a data reset for a new test. I hoped to get around that.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Mar 19, 2024

@Tyrrrz Tyrrrz added invalid This doesn't seem right and removed bug Something isn't working labels Mar 19, 2024
@peter-sabath
Copy link
Author

After some more testing, especially with the Windows Sandbox, there is no problem. So it was mostly related to testing on a development machine.
Sorry for bothering you.

@Tyrrrz Tyrrrz closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants