Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I am trying to code by my self an auto updater but I am getting really headache when it can not run. How do I set a txt file, adding to my database and then it checks for a new update version so after this, it starts downloading? VB.net

Thanks a lot!

What I have tried:

<pre>File.Move(Application.StartupPath & "\" & Files(i), _
                        Application.StartupPath & "\" & _
                        Now.TimeOfDay.TotalMilliseconds & ".old")
                Catch ex As Exception
                End Try
                
                myWebClient.DownloadFile(RemoteUri & Files(i), _
                    Application.StartupPath & "\" & Files(i))
Posted
Updated 27-Oct-18 20:45pm
Comments
Mehdi Gholam 28-Oct-18 3:31am    
You have to account for locked files also (DLL files will locked when you use them in your application).
Member 13791238 28-Oct-18 9:26am    
Can you help me out what should I code? By the way I want to do it as a txt file and not as a DLL.
Richard Deeming 30-Oct-18 12:54pm    
Rather than coding it yourself, why not try Squirrel.Windows[^]?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900