Page 1 of 1

IA18.08: Generate Native Images in x64 mode is not working

Posted: Wed Oct 15, 2014 7:51 am
by Wolfgang Guertl
IA18.08: Generate Native Images in x64 mode is not working

Hi

The function "Generate Native Images for assembly" does not work for Framework 4 assemblies in x64 MSI Mode.
I do use IA18.08 Studio Admin. The project assemblies are signed with a key file. The install.log does not show any problems.

ngen /show does not show any IA produced entries in x64 mode.

If the setup is running in x86 mode ngen /show does list the generated assembly.


Microsoft (R) CLR Native Image Generator - Version 4.0.30319.33440
Copyright (c) Microsoft Corporation. All rights reserved.
WARNING: This syntax is deprecated or you mis-typed your command. Run "ngen /?" to display a list of the currently supported parameters.

NGEN Roots:

.
.
.
C:\Program Files (x86)\IAngenbugx64Setup\IAngenbugx64.exe
.
.
.
.

please look at the attached zip.
any help would be very appreciated
regards from Austria


Wolfgang Guertl

Re: IA18.08: Generate Native Images in x64 mode is not worki

Posted: Thu Oct 16, 2014 10:59 am
by FrancescoT
Dear Wolfgang,

unfortunately I can only confirm the issue and I'll notify our dev team about the problem.

As workaround, you could execute the "ngen" tool using the "Run Program" command to creates native images in x64 mode.

Code: Select all

Get System Setting Windows in 64 bit Mode into ISX64OS
if Variable ISX64OS Equals TRUE
  Run Program $FrameWork64Path$\ngen.exe ngen.exe install $TARGETDIR$\IAngenbugx64.exe (WAIT)
end
The same as IA clipboard format:

Code: Select all

~InstallAware Clipboard Data~
~End~
~{00BCA810-9522-4872-B08C-1E8A0D50DF38}~
~Run Program~
~{B8A00ED7-0D2B-459C-A73F-A3492F80DF71}~
~$FrameWork64Path$\ngen.exe~
~FALSE~
~ngen.exe install $TARGETDIR$\IAngenbugx64.exe~
~TRUE~
~~
~If~
~{4146256E-5751-4ABC-93C0-E577B378AA85}~
~ISX64OS~
~0~
~TRUE~
~FALSE~
~Get System Settings~
~{27B011FD-B0DF-415C-8E75-5E90C260A449}~
~ISX64OS~
~65~
Hope this helps you.

Regards

Re: IA18.08: Generate Native Images in x64 mode is not worki

Posted: Tue Oct 21, 2014 8:56 am
by Wolfgang Guertl
Hi Franceso!

Thank you for your workaround. But i find another ngen issue in 32 bit mode. If the Setup run's with NEEDSUPGRADE=TRUE the ngened assemblies did not get uninstalled with the "Install/Remove MSI Package .... " command at line 47. A MesseboxShow will pause the upgrade process. Please have a look at the modified sample.

regards from Austria

Wolfgang Guertl

Re: IA18.08: Generate Native Images in x64 mode is not worki

Posted: Tue Oct 21, 2014 10:58 am
by FrancescoT
I'll check it!

Regards