Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

Native Code Generation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ioannis Vranos - 07 Oct 2004 10:57 GMT
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?

Signature

Ioannis Vranos

Carl Daniel [VC++ MVP] - 07 Oct 2004 14:32 GMT
> 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
Ronald Laeremans [MSFT] - 07 Oct 2004 17:19 GMT
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

>> 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?
[quoted text clipped - 3 lines]
>
> -cd
Ioannis Vranos - 07 Oct 2004 18:38 GMT
> 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? :-)

Signature

Ioannis Vranos

Carl Daniel [VC++ MVP] - 07 Oct 2004 19:40 GMT
>> 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
Ronald Laeremans [MSFT] - 07 Oct 2004 21:13 GMT
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

>> 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? :-)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.