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

Native Code Generation

Is it possible to use "Native Code Generation" during installation of VS
2003 programs so as to avoid run-time JITing, and if yes, how?

--
Ioannis Vranos
Nov 17 '05 #1
5 1145
Ioannis Vranos wrote:
Is it possible to use "Native Code Generation" during installation of
VS 2003 programs so as to avoid run-time JITing, and if yes, how?


Arrange for your installer to invoke ngen.exe on the assemblies that you're
installing.

-cd
Nov 17 '05 #2
And of course if Ioannis is interested in applications that do not use the
..Net framework, VS 2003 can be used as a great tool to write native C++
applications.

Ronald

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:ea**************@TK2MSFTNGP12.phx.gbl...
Ioannis Vranos wrote:
Is it possible to use "Native Code Generation" during installation of
VS 2003 programs so as to avoid run-time JITing, and if yes, how?


Arrange for your installer to invoke ngen.exe on the assemblies that
you're installing.

-cd

Nov 17 '05 #3
Carl Daniel [VC++ MVP] wrote:
Arrange for your installer to invoke ngen.exe on the assemblies that you're
installing.

Is there any option within a "Setup Project", or must I use batch files
and other similar embarrassments? :-)

--
Ioannis Vranos
Nov 17 '05 #4
Ioannis Vranos wrote:
Carl Daniel [VC++ MVP] wrote:
Arrange for your installer to invoke ngen.exe on the assemblies that
you're installing.

Is there any option within a "Setup Project", or must I use batch
files and other similar embarrassments? :-)


That I don't know, as I don't use VS's Setup Projects. Someone else here
might know, or you might have better luck on a newsgroup like:

microsoft.public.windows.msi.

-cd
Nov 17 '05 #5
There is no built in way to do this with setup projects. You can write a
custom action and invoke that as part of an MSI install, but I am quite
certain there is no great way this is exposed in the setup projects.

If you want to do anything more than very vanilla setup, you should probably
look at a commercial installer product.

Ronald

"Ioannis Vranos" <iv*@guesswh.at.grad.com> wrote in message
news:Oh*************@TK2MSFTNGP12.phx.gbl...
Carl Daniel [VC++ MVP] wrote:
Arrange for your installer to invoke ngen.exe on the assemblies that
you're installing.

Is there any option within a "Setup Project", or must I use batch files
and other similar embarrassments? :-)

--
Ioannis Vranos

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
0
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
1
by: Will | last post by:
Hi All, * I have 2 dev machines, one is running WinXP Pro and one is running Win2K Server. Each has Visual Studio .NET 7.0 installed (the .NET 1.0 dev tools.) * I have a .NET .dll (let's call...
1
by: Gina | last post by:
I need to add the cell generation to a templated program. I am using graphics magician, but my problem is with the math. I cannot figure out my cell generations. I do know that I need two...
14
by: Greg | last post by:
Is it possible that in some future version of Windows, only .NET (CLR) PE (Portable Executables) .exe will be enabled to run. I.e. the OS will not support running of native x86 code .exes/dlls? ...
19
by: docschnipp | last post by:
Hi, as someone pulling to C# over from C++ I stumbled over something today for which I was not able to find an answer: HOW do I convert a byte block with a given endianess to an int32 and vice...
6
by: Marcus | last post by:
How can I compile my VS2005 c# code to not be dependent on CLR to run? I want people that install my software to be able to run it without having to bother with CLR's and "Windows installers". ...
6
by: smmk25 | last post by:
Before I state the problem, I just want to let the readers know, I am knew to C++\CLI and interop so please forgive any newbie questions. I have a huge C library which I want to be able to use in...
0
by: Daniel Gutson | last post by:
Hi, I am about to expand a previous work, and before doing that, I would kindly appreciate feedback about it. http://danielgutson.googlepages.com/precomp_cpp.pdf My next step is to support data...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.