r/DeployR • • 17d ago

DeployR Existing OS Task Sequence exits after installing .NET 11 (exit code -1073741510)

Post image

When using DeployR to deploy an image, I encountered an issue during the Install Applications step in the Full OS step.

When I attempted to install .NET Runtime Desktop 11.0, none of the applications scheduled after it were installed. After reviewing the logs, I found that the Task Sequence was unexpectedly terminated at that point.

My suspicion is that the installation of .NET Runtime terminated or interfered with the dotnet.exe process that DeployR depends on, causing the DeployR process and the Task Sequence to exit.

Has anyone else encountered this issue when installing or upgrading .NET Runtime during a DeployR deployment? If so, is there a recommended workaround or solution?

4 Upvotes

12 comments sorted by

1

u/gwblok 2Pint Employee 17d ago edited 17d ago

I'm guessing you have other apps that have a dependancy of .net11, which is why you're installing it? But yes, it would appear that the install is breaking the task sequence engine.

Workaround, do it after the TS is complete, a scheduled task or run once, or via your Management platform.

1

u/adminjyan 16d ago

Yes, I have some applications that depend on .NET 11. It sounds like this is a known issue. I understand now,I can include .NET 11 in my image as a workaround. Thanks for your help!

1

u/mtniehaus 2Pint Employee 17d ago

For whatever reason, installs of other .NET versions end up terminating the processes using other versions. We use .NET 10, and it kills that too.

1

u/adminjyan 16d ago

Yes, that’s what I suspected too. Thanks for your help!

1

u/mtniehaus 2Pint Employee 16d ago

Out of curiosity, how did you install the .NET 11 pieces? And what completion method are you using? And what .NET 10 version was installed? (I tried a few ways to duplicate the issue and couldn't -- the install worked fine and the task sequence completed as expected. I have some theories, but need more information to prove those out.)

1

u/adminjyan 15d ago

Thanks for checking. To verify the test results, I only included two applications and removed all custom configurations.

Both .NET 10.0.14 and .NET Desktop Runtime 11.0.0-rc.3 were installed successfully on the system. However, after the .NET 11 installation step completed, none of the subsequent tasks were executed, including the VLC installation.

So it looks like the .NET 11 installation itself succeeds, but something causes the task sequence to terminate immediately afterward.

1

u/mtniehaus 2Pint Employee 15d ago

That's what I'm struggling to duplicate -- .NET 11 installed successfully and the task sequence continued to completion in my test. So the question is what's different about my test. I'll keep trying.

1

u/adminjyan 14d ago

Just to add some information about my DeployR version, I’m currently using DeployR Community 1.4. However, I also encountered the same issue in DeployR Community 1.3.

1

u/mtniehaus 2Pint Employee 14d ago

I did find a couple of workarounds for this:

  1. Install the dotnet-runtime first, then install the desktop. For some strange reason, this works.
  2. Add logic before the install that sets value "DisableAutomaticApplicationShutdown" in 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer' to a DWORD value of 1. The command line equivalent:

reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v DisableAutomaticApplicationShutdown /t REG_DWORD /d 1 /f

You should remove that value after the install completes.

We will try to get this documented somewhere.

2

u/adminjyan 13d ago

Awesome, thanks! I tried your workarounds and they fixed the issue.

1

u/Easy-Fox-7345 16d ago

Yes, same issue here. We have apps that require different .NET runtimes to install as pre-requisites. We have to use CCM to provision these apps later after DeployR OSD. Is this not resolvable by design?

1

u/mtniehaus 2Pint Employee 13d ago

See the workarounds above.