Update hangs during optimization

Hi, Using the Updater, we sometimes see a long delay, like minutes during the last phase of Update. Eventually the update does finish but its easy to consider this a hung process and abort the update.

Forgot ... using wyUpdate 2.6.4.0 on Win 7. and oc course, it's "Optimization" (can't figure out how to edit the post)

During the optimization step wyUpdate NGENs your .NET *.exe files. So, the NGEN is slowing down the update process.

Is this a "make or break" problem for you? That is, do you want us to give an option to skip NGENing altogether?

In case you don't know, NGENing generates native images using machine code for the target system. That is, it takes a bit of time to NGEN (longer for more complex apps) but it increases execution speed when the user actually runs the app.

Hi Sam,We'd like this option -- we have many .NET assemblies in our deployment, so the NGen takes quite a bit of time (a few minutes). A number of these assemblies are plugins which, depending on each user's needs, may never get JIT or get JIT incrementally as the user activates functionality in the application. In our scenario, it makes more sense to have speedy updates and defer the compilation hit to application usage rather than making users wait for up-front.

This isn't urgent for us as we've created our own version of wyupdate with this functionality removed; but if this gets added as an option in WyBuild it would allow us to return to the stock code.

Thanks for a great product!-Ben

Ok, we're adding the option to skip .NET ngening coming in wyBuild 2.6.7 (coming later this week / early next week).

wyBuild 2.6.7 is now out. You can elect to not NGEN .NET assemblies by going to File->Properties in wyBuild, and unchecking the "Optimize .NET assemblies using NGEN" checkbox.

Thanks to JMB for such a clear subject line and for asking about this problem.

I just released a new update to my application, Universe Sandbox, the first in over 1 month.http://universesandbox.com/

On my dev computer it would update fine but on my other two test machines (XP and Windows 7) it seemed to hang during optimization. I was at first fearful that this was some weird bug in the last update I released and that there would be no way to fix this outside of having all my users re-download the latest setup.exe file.

Turns out unchecking the NGEN Optimization option and re-uploading the wyserver.wys file solved it.

I wonder if this option should be off by default. Either way... yay for a quick fix.

I wonder if this option should be off by default.

Good idea. We've set it off by default in wyBuild 2.6.8.