bdhobbs
Posts: 15
Joined: Fri Apr 29, 2022 4:24 pm

During silent install, .NET Core Runtime is not finished installing before service starts

Hello,

I am experiencing an issue with my installer when I try to execute it silently. I don't experience this issue when running Full UI.

I have two feature prerequisites: Microsoft .NET Runtime 5.0.12 and Microsoft ASP.NET Core 5.0.12.

When the installer finishes running, the service we are installing isn't starting. Digging into the Event Log, I get the following:

Log Name: Application
Source: .NET Runtime
Date: 5/23/2022 11:11:16 AM
Event ID: 1023
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DEVOPS-PIPE-21.salientsys.com
Description:
Description: A .NET application failed.
Application: ManagementServer.exe
Path: C:\Program Files\Salient Security Platform\CompleteView\Management Server\ManagementServer.exe
Message: A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [C:\Program Files\Salient Security Platform\CompleteView\Management Server\].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation].

The .NET runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?mi ... ion=5.0.12


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1023</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-05-23T16:11:16.467451600Z" />
<EventRecordID>1759</EventRecordID>
<Channel>Application</Channel>
<Computer>DEVOPS-PIPE-21.salientsys.com</Computer>
<Security />
</System>
<EventData>
<Data>Description: A .NET application failed.
Application: ManagementServer.exe
Path: C:\Program Files\Salient Security Platform\CompleteView\Management Server\ManagementServer.exe
Message: A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [C:\Program Files\Salient Security Platform\CompleteView\Management Server\].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation].

The .NET runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?mi ... ion=5.0.12

</Data>
</EventData>
</Event>

After it finishes, I can start the service manually, so everything is eventually getting installed.

I have tried several things, Including Using a "Start Service" custom action right before the "Finish Execution" standard action in the Install Execution Sequence, as well as changing the AI_LaunchChainer to 1266. All to no avail.

Any guidance would be greatly appreciated.

Cheers,
Bryan
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: During silent install, .NET Core Runtime is not finished installing before service starts

Hello Bryan,
When the installer finishes running, the service we are installing isn't starting. Digging into the Event Log, I get the following:
If the service your are installing relies on some component from your prerequisite, then the reason it is not starting is because the prerequisites are actually installed as "post-install" if both the main package and the prerequisites are installed silently.

The explanation for this can be found in the following forum thread:

Feature based prerequisites not installing during silent install

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”