473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Deployment and nGen.exe

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
3 8187
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Doug Holland | last post by:
Hi There If you have a .NET based application installed and you'd like to increase the start-up performance of that application; can you NGen assemblies once the application is installed? The...
2
by: Wol | last post by:
I have two assemblies, A.dll and B.dll. A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not. To cache a native image of A.dll with...
1
by: fleimeris | last post by:
hello, i am preparing for 70-316 exam and i'm not quite sure about the answer to the following question. i want to use ngen.exe to boost the performance of my application. however, when should i...
1
by: Mark | last post by:
I was hoping to use nGen to speed up the time taken for our web site to start running. However, on the web we found this quote: "NGen is not recommend for Asp.Net because the assemblies NGen...
3
by: William Reyes | last post by:
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...
0
by: John J. Hughes II | last post by:
Ok I have added the below code to my install. First based on "ngen show myapp.exe" my appliation is not being installed. I am unable to determine if the code is even run. I added the following...
1
by: Sameeksha | last post by:
Hi everyone, I have observed that the ngen process appears in the list of processes in taskmgr while .net framework 1.1 gets installed. This process consumes 0-50% of cpu and 0-20K of RAM. I...
2
by: whezker | last post by:
Hi everybody. I'm trying to use the ngen tool from framework 2.0, to accelerate the load runtime of my app. I'll explain here what I'm doing. First I copy&paste the ngen.exe to the Bin folder of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.