we are trying to use NGen for our assemblies, but it gives the following error in the log:
The MSI was run using msiexec from an Admin command line. Running the above mentioned ngen command manually, it works well both in the Admin command line and in System context.Action 16:36:04: AI_NativeImageInstall.32C56C03_A6BB_4E63_AE31_F2F522131040.
MSI (s) (08:04) [16:36:04:537]: Executing op: CustomActionSchedule(Action=AI_NativeImageInstall.32C56C03_A6BB_4E63_AE31_F2F522131040,ActionType=3137,Source=BinaryData,Target=GenerateNativeImages,CustomActionData=C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install "ClassLibNGen, Version=1.0.0.0, Culture=neutral, PublicKeyToken=825f2ed0b2c997c1" /NoDependencies5000C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update /queue)
MSI (s) (08:84) [16:36:04:537]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC7CE.tmp, Entrypoint: GenerateNativeImages
Executing command :
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install "ClassLibNGen, Version=1.0.0.0, Culture=neutral, PublicKeyToken=825f2ed0b2c997c1" /NoDependencies
Microsoft (R) CLR Native Image Generator - Version 4.0.30319.18408
Copyright (c) Microsoft Corporation. All rights reserved.
Uninstalling assembly ClassLibNGen, Version=1.0.0.0, Culture=neutral, PublicKeyToken=825f2ed0b2c997c1 because of an error during compilation: The system cannot find the file specified. (Exception from HRESULT: 0x80070002).
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Could you help on this, where the problem is?
This log is created by a simple installer: a single assembly is packed into an MSM, which is included in an otherwise empty MSI. Aip and the full log are attached.
Using AI 12.3.1
Thank you,
Gabor Vasko
FOLLOW US
Get the latest news in Application Packaging