By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

Deployment and nGen.exe

P: n/a
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 program
and 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 system
drive is D:\ instead of C:\)

Thanks.
William
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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


Jul 19 '05 #2

P: n/a
Thanks Tim.
"Tim Kurtzman" <ti****@microsoft.com> wrote in message
news:b5**************@cpmsftngxa06.phx.gbl...
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

program
and 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

system
drive is D:\ instead of C:\)

Thanks.
William

Jul 19 '05 #3

P: n/a
Also note that native images are not installed in the "GAC" (this is a
common misconception). Native images are installed in a directory that is a
sibling of the GAC, but these are very different storage locations.

..\lan

--
This posting is provided "AS IS" with no warranties, and confers no rights.
http://blogs.gotdotnet.com/alanshi
"William Reyes" <wr****@optonline.net> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Thanks Tim.
"Tim Kurtzman" <ti****@microsoft.com> wrote in message
news:b5**************@cpmsftngxa06.phx.gbl...
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

program
and 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

system
drive is D:\ instead of C:\)

Thanks.
William


Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.