How do I run nGen at the end of the installation (MSI)?

前端 未结 6 1000
耶瑟儿~
耶瑟儿~ 2021-02-14 01:55

I would like to execute nGen at the end of my installation simply to improve the perceived performance of the first startup of my application. How could I do that? Is there are

6条回答
  •  梦谈多话
    2021-02-14 02:03

    First of all "Yes" you can guarantee that if they have the .Net framework installed that they have Ngen. The only thing you need to know is which version they have installed, buecause it's different between 1.1, and 2.0. What I've done in the past is simply created a script that my installer calls at the very end which runs ngen on all the assemblies.

提交回复
热议问题