1) Yep, that's the correct scenario.
2) Yep, the .net framework installs ngen.
3) In the registry, you'll find the reg value "InstallRoot" under
HKLM\Software\Microsoft.NET\framework\. That will point to the place where
all of the runtimes are installed. Append the version of the runtime you
want to the value of "InstallRoot", and that's where you'll find ngen.
Tim
--------------------
From: "William Reyes" <wr****@optonline.net>
Subject: Deployment and nGen.exe
Date: Tue, 19 Aug 2003 08:31:29 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <us**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: cl183-230.dsl.invision.com 69.18.183.230
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:104995
X-Tomcat-NG: microsoft.public.dotnet.general
I have a question regarding the use of ngen.exe and dedployment.
I want to make sure I understand this correctly.
If I create an app that has an .exe as well as a couple of .dll's.
I can create a setup package, create a batch file (specifying the ngen
commands) run the install, call the batch file from within the setup
programand run ngen.exe on the .exe and .dll files.
This will create a native image in the machines GAC.
I guess my question is:
1. Is that the correct scenario?
2. Does the .net framework install ngen with the dotnetfx?
3. How can I know the location of the ngen.exe file? (ie if the users
systemdrive is D:\ instead of C:\)
Thanks.
William