Our app, distributed via ClickOnce, takes 10.8 seconds on average to start up. After running ngen
on the .exe (in the directory that ClickOnce installed it into), it starts up in 6.4 seconds on average. This is obviously a huge speedup (40%) and I would like to make use of ngen-ification if possible.
Ron's answer to Is it possible to use NGen with ClickOnce deployment? shows how it can be done on the customer's machine, assuming I guess he runs Windows XP, as it wants Administrator rights on my Windows 7 box, so that does not seem like a generic solution.
Furthermore, ngen takes 40 seconds on my box to compile all assemblies belonging to that app.
So ideally, I'd like to pre-ngen our app for all (major) architectures as part of the build process, so it could be shipped to the customer without the user having to accept an "ok to execute as admin?" popup and then wait 40 seconds.
Is that possible?