We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

NGEN - private install of .NET assembly

I have a simple .NET application that consists of an EXE file and a couple of DLLs. I'd like to use NGEN to pre-JIT my .exe so I added it under Assemblies and selected the following options:

- Destination: "Private Install To: APPDIR\filename.exe"
- Type: .NET assembly (also, the "Generate native image for private assembly" checkbox is selected)

The only ".NET Native Image" options that I changed were both under "Installation":
Platform is set to: "A native image same as the target platform"
Priority is set to: "Wait for this native image generation to continue"

My installer completes as expected but I don't see the native image anywhere (filename.ni.exe)? Shouldn't it be in APPDIR since I'm doing a private install and not registering it with the GAC?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: NGEN - private install of .NET assembly

Hello,

Example:
For .NET 2.0 (32-bit native image is here)
"C:\Windows\assembly\NativeImages_v2.0.50727_32\YourAssemblyName\f6cd6f5c86e5dee77838971d83ab5817\YourAssemblyName.ni.exe"

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”