473,322 Members | 1,540 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,322 software developers and data experts.

NGEN and Deployment

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 to my main application,
added it as a custom install in my installer.

Can someone tell me what Iam going or how to debug it?

public override void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);

string args = this.Context.Parameters["Args"];

if (args == string.Empty)
throw new InstallException("No Arguments specified");

string dir =
System.Runtime.InteropServices.RuntimeEnvironment. GetRuntimeDirectory();

System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo(dir + "ngen.exe", " install '" + args +
"'");
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
try
{
Console.WriteLine("Ngen " + args);
System.Diagnostics.Process p =
System.Diagnostics.Process.Start(psi);
p.WaitForExit();
}
catch (Exception ex)
{
throw new InstallException(ex.Message);
}
}
Regards,
John
Jan 31 '06 #1
0 1145

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...
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...
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...
2
by: JMMB | last post by:
Just a confirmation. NGen generates native code when i install the windows application on the client or when I run it for the first time? thanks,
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: 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...
7
by: musosdev | last post by:
Hi guys I've just read the article in this months MSDN about using Ngen to speed up initial load times and I thought "great, I can speed up initial load of my web app!". However, having just...
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.