22.10.5 - Silent install -> "Entering ExecNetFx"

Hi,
My Silent install have worked fine on 21.10.9
I’m now upgrading all Robot machines with Studio (for troubleshoting) + ServiceMode.

I’m on Windows 10 and .NET Framework 4.6.1
This is my set of pre-reqs:

choco install dotnet-6.0-desktopruntime -y
choco install googlechrome -y
choco install microsoft-edge -y

This is my MSIExec string:
MSIEXEC /i "C:\temp\UiPathStudio_22.10.5.msi" /l*v "c:\temp\3. InstallStudio_msi.log" /q ADDLOCAL="Studio,DesktopFeature,Robot,RegisterService" APPLICATIONFOLDER="C:\Program Files\UiPath" PACK AGES_FOLDER="c:\nuget"

The install carries on, but after some 32.000 lines the log starts to generate compile errors.
The partial log attached InstallStudio_22.10.5.log.zip (977.5 KB)
Is this expected?

The MSIExec have been running for some +30min.
Is this expected?

ExecNetFx:  1>    Compiling assembly PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (CLR v4.0.30319) ...
ExecNetFx:  1>WARNING: Dependency attribute for System, is being ignored, possibly because of cyclic dependencies.
ExecNetFx:  1>WARNING: Dependency attribute for WindowsBase, is being ignored, possibly because of cyclic dependencies.
ExecNetFx:  1>WARNING: Dependency attribute for PresentationCore, is being ignored, possibly because of cyclic dependencies.
ExecNetFx:  1>Error compiling PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35: Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Exception from HRESULT: 0x80070241)
ExecNetFx:  1>Ngen failed to generate native code for image PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 because of the following error: Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Exception from HRESULT: 0x80070241)
ExecNetFx:  1>Ngen will retry compilation of image PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

update: The install finally finished!

MainEngineThread is returning 0
= Success!
Log attached.
InstallStudio_22.10.5.msi.zip (1011.3 KB)

What is this compilation ExecNetFX about?
I can’t find any files generated from it.
Check lastwritetime:

Get-ChildItem -path "C:\ProgramData\UiPath" -Recurse -File | sort lastwritetime | select -last 10 |format-table -property @{Expression={(New-TimeSpan -start $_.LastWriteTime -End (Get-Date)).Days};Label="Days"},Length, FullName

Days Length FullName                                                                                           
---- ------ --------                                                                                           
  16  27968 C:\ProgramData\UiPath\UiPath.Common\22.10.49.20324\ru\UiPath.MicrosoftOffice.Tools.resources.dll   
  16  23872 C:\ProgramData\UiPath\UiPath.Common\22.10.49.20324\zh-CN\UiPath.MicrosoftOffice.Tools.resources.dll
  16 179008 C:\ProgramData\UiPath\UiPath.Common\22.10.49.20324\UiPath.MicrosoftOffice.Tools.exe                
   0     64 C:\ProgramData\UiPath\UpdateService\RBY-PF2VY4WG\installation.json                                 
   0  24576 C:\ProgramData\UiPath\UpdateService\Dbs\OperationDb.db                                             
   0   8192 C:\ProgramData\UiPath\UpdateService\Dbs\LogDb.db                                                   
   0   8192 C:\ProgramData\UiPath\UpdateService\Dbs\JobStatusDb.db                                             
   0    379 C:\ProgramData\UiPath\UiPath.settings                                                              
   0    796 C:\ProgramData\UiPath\Logs\internal\Robot.log                                                      
   0   4570 C:\ProgramData\UiPath\UpdateService\Logs\2023-02-16_Update_Worker.log

Get-ChildItem -path "C:\Program Files\UiPath" -Recurse -File | sort lastwritetime | select -last 10 |format-table -property @{Expression={(New-TimeSpan -start $_.LastWriteTime -End (Get-Date)).Days};Label="Days"},Length, FullName

Days Length FullName                                                                        
---- ------ --------                                                                        
  16  63808 C:\Program Files\UiPath\net461\ko\UiPath.Integration.ExcelAddIn.resources.dll   
  16  63808 C:\Program Files\UiPath\net461\tr\UiPath.Integration.ExcelAddIn.resources.dll   
  16  64832 C:\Program Files\UiPath\net461\ru\UiPath.Integration.ExcelAddIn.resources.dll   
  16  63808 C:\Program Files\UiPath\net461\pt-BR\UiPath.Integration.ExcelAddIn.resources.dll
  16  63808 C:\Program Files\UiPath\net461\zh-CN\UiPath.Integration.ExcelAddIn.resources.dll
  16  63808 C:\Program Files\UiPath\net461\pt\UiPath.Integration.ExcelAddIn.resources.dll   
  16  35906 C:\Program Files\UiPath\net461\UiPath.Integration.ExcelAddIn.dll.manifest       
  16  19993 C:\Program Files\UiPath\net461\UiPath.Integration.ExcelAddIn.vsto               
   0   1442 C:\Program Files\UiPath\uipath.config                                           
   0    523 C:\Program Files\UiPath\NuGet.config

It’s related to ngen.exe:
https://www.google.com/search?q=ngen+windows

When running the install manually, ngen is not called from MsiExec.

Just surprised it’s only activated when running the MSI in silent mode.

I guess we’ll have to accept its added for a reason.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.