Look. If I change the exe name Prot.exe > ProtAAAAAA.exe.
Update is continuing, copied the file Prot.exe, but not finished.It is waiting the step "Optimizing and executing files".
I have problem with file in use dialog.
When I start wyupdate.exe found a update and ask me aupdate now?
I click update button. Some second later appear a window "File in use"It says "C:\Program Files\Mutr\Prot.exe" in use. But there is no process in "Windows process tab" and also I can change the exe file name (Like C:\Program Files\Mutr\Prot.exe > ProtAAAAAA.exe there is no error so prot.exe is not executing)Every time wyupdate.exe found the same update and always appear "File in use dialog"What is the problem?
Look. If I change the exe name Prot.exe > ProtAAAAAA.exe.
Update is continuing, copied the file Prot.exe, but not finished.It is waiting the step "Optimizing and executing files".
The "file in use" dialog isn't shown when the process is running, but later on when a file fails to overwrite the old file.
Try closing any debuggers / IDES you have opens (Visual Studio, etc.)Try closing the Windows Explorer window that shows the exe.
Did this happen before, or has it started recently? Can you reproduce this behavior on another computer?
Aha my actual problem is "https://wyday.com/forum/t/307/update-hangs-during-optimization/"
I assumed before it is "File in use problem " but I understand that is NGEN problem for me. Scenario 1 I created wyBuild project with there version 8.0.2, 8.0.3 , 8.0.4 8.0.2 is for setup so it hasnt any file8.0.3 has an exe and I checked the "Execute file after uptadating has finished"8.0.4 has an exe and I checked the "Execute file after uptadating has finished"First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (File in use problem)
Scenario 2I created wyBuild project with there version 8.0.2, 8.0.3 , 8.0.4 8.0.2 is for setup so it hasnt any file8.0.3 has an exe (not check anything )8.0.4 has an exe (not check anything)First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (Update hangs during optimization. I wait for 30 minutes but there is no response )
I tried three different computer the results are same.I want to an option to ignore optimization.
Ok, we're adding the option to skip .NET optimization coming in 2.6.7.
I must add something my last post.
I use Eziriz.Net Reactor for obfuscation. In may last post has two scenarios for exe by produced eziriz.net reactor.
Now I tried the same screnrios for exe by produced visual studio. Now I have a different situation.
Exe Produced Eziriz.NET ReactorFirst try: Update 8.0.2 to 8.0.4 no problem it is okay.
Exe Produced By VS2008First try: Update 8.0.2 to 8.0.4 (Update hangs during optimization.There is no response )
I dont understand anything. Please help me.
Ok, we're adding the option to skip .NET optimization coming in 2.6.7.
I see now. Thanks.
Code that uses complex generics notoriously takes a very long time to NGEN. This is a bug in the NGEN utility (it's already been reported to Microsoft).
The code protected using the obfuscator likely gets skipped by our .NET detection (hence the 0 time it takes using the optimization).
You says "The code protected using the obfuscator likely gets skipped by our .NET detection (hence the 0 time it takes using the optimization)."
But what about above errors?I used exe obfuscated by NET reactor but I got errors.
Scenario 1First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (File in use problem)
Scenario 2First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (Update hangs during optimization. I wait for 30 minutes but there is no response )
Aha my actual problem is "https://wyday.com/forum/t/307/update-hangs-during-optimization/"
I assumed before it is "File in use problem " but I understand that is NGEN problem for me. Scenario 1 I created wyBuild project with there version 8.0.2, 8.0.3 , 8.0.4 8.0.2 is for setup so it hasnt any file8.0.3 has an exe and I checked the "Execute file after uptadating has finished"8.0.4 has an exe and I checked the "Execute file after uptadating has finished"First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (File in use problem)
Scenario 2I created wyBuild project with there version 8.0.2, 8.0.3 , 8.0.4 8.0.2 is for setup so it hasnt any file8.0.3 has an exe (not check anything )8.0.4 has an exe (not check anything)First try: Update 8.0.2 to 8.0.4 no problem it is okay.Second try: Update 8.0.3 to 8.0.4 (Update hangs during optimization. I wait for 30 minutes but there is no response )
Are you adding the full version to each version tab in wyBuild? That is, does the "8.0.2" version tab have all your 8.0.2 files. (Ditto for 8.0.3 and 8.0.4 - do they have all the files added to wyBuild?)
Also, checking or unchecking "Execute file after updating has finished" shouldn't have any effect on "File in use". The "file in use" dialog only appears when an updated file fails to overwrite an existing file. Make sure you don't have any debuggers open. Also, close the obfuscator tool - that might be locking the read permission on the file.
...\wyBuild\deneme\Updates folder has files
File Name File Size---------------------------------- -----------DENEME.8.0.2.to.8.0.3.zip 2.864.586 DENEME.8.0.2.to.8.0.4.zip 2.861.927DENEME.8.0.3.to.8.0.4.zip 2.802.395 DENEME.All.to.8.0.2.zip 237DENEME.All.to.8.0.3.zip 2.864.625 DENEME.All.to.8.0.4.zip 2.861.966 wyserver.zip 1.227
8.0.2 dosnt any file. Because I start the version with 8.0.2 8.0.3 has an exe (ver 8.0.3.0)8.0.4 has an exe (ver 8.0.4.0)
I upload all files to server on the internet.I execute wyupdate.exe on two different computers.Also I execute wyupdate.exe on my VirtualBox Windows XP ( I am using Vista)
I tried many different ways. I started with 8.0.3 has an exe (ver 8.0.3.0)8.0.4 has an exe (ver 8.0.4.0)
I tried may be 50 times or more.
I can say that for me "If lower and upper version has an exe I always waiting for optimization. but if lower version hasnt and upper has there is no problem"
PlusI tried for different exe file names
example 8.0.3 - app.exe8.0.4 - app.exe Update 8.0.3 to 8.0.4 -- waiting optimization
example 8.0.3 - app1.exe (look names different)8.0.4 - app2.exe Update 8.0.3 to 8.0.4 -- waiting optimization
?
OK, you can skip optimizations in wyBuild 2.6.7 (out soon). You're not getting the "files in use" problem anymore, correct?
On an unrelated note, you should add all the files to the 8.0.2 version. Otherwise, when wyUpdate updates from 8.0.2 to any other version it will include full files instead of patches.
I hope it will solved. You are right I must copy all files in 8.0.2, 8.0.3 ,8.0.4 because of wyBuild create patches.Thank you.
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.