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 3 8206
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
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 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
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 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |