When installing my .net appication is it possible that it is compiled to native code
I am developing a standalone windows application and do not want the JIT compilation. Because the target OS is fixed and known, it would be good to compile the .net code to native code at the time of installation. I had read about this somewhere but cannot remember it fully or find the article again. Any help would be great.
thanks in advance.
Sesh

Skip JIT?
kulkarni
This can be done by using ngen.exe. Couple of MSDN pages about it:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptools/html/cpgrfNativeImageGeneratorNgenexe.asp
http://msdn.microsoft.com/msdnmag/issues/06/05/CLRInsideOut/
http://msdn.microsoft.com/msdnmag/issues/05/04/NGen/default.aspx
IamManick
thanks. This helped.
Additionally do you know that if I created an installer with the VS2005 "Setup and Deployment" project types, do these .msi installers run ngen when installing the application. Or does one have to run the ngen explicitly.
Sesh
kettch
Sesh,
As of July 2006, there is also an NGEN custom action available in WiX (http://sourceforge.net/projects/wix/) that lets you NGEN your files easily.
http://installing.blogspot.com/2006/06/ngen-support-in-wix.html
Hope this helps,
Pracheeti - MSFT
Hemant Hindlekar
Yes, here is a sample:
http://msdn2.microsoft.com/en-us/library/3hwzzhyd(VS.80).aspx