I have a program written in VB.Net
and this program is supposed to auto update. I already found how to download the new file and unzip it, problem is I cannot overwrite the file as long its in execution. How is this done normally? I thought about an "updater" on a separate exe but that would have the same problem, I couldn't update the updater when I make some changes...
相关问题
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- C# to VB - How do I convert this anonymous method
- Scaling image for printing
- visual basics equal to or greater than
相关文章
- vb.net 关于xps文件操作问题
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Load a .NET assembly from the application's re
- C# equivalent of VB DLL function declaration (Inte
- What other neat tricks does the SpecialNameAttribu
- Automatically install updates with ClickOnce deplo
- Resetting Experimental instance of Visual Studio
Why not just create a ClickOnce deployment, and host it somewhere?
simple solution, just divide the exe file source code into multiple DLL file(like divide in terms of modules) and have the main exe to execute the dll code like
sub MDImainEXE_load()
DLL.function like that
end sub
and you can use the same method for update exe send new main exe with configuration and DLL,configuration file will contain DLL names to update,if update exe has to update then name that DLL as argument to use because update exe will not contain code just use function from DLL file name from configuration file arguments.
sub updateEXE_load()
DLL.function like that
end sub
if confused then ask what confused.
Simply close the old program.
Keep the separate updater program, then when you want to update your old program, get the updater to close the old program, then download the new version of your app. For example,
Updater program,
Maybe something like Create A Dump File for a Running Process
You see it here
But it depends on your VB version....
Old question, but what I do is, when I am within my main program, I copy rename the current updater, and then call out to the renamed updater like so:
(note, code has been simplified for explanation and illustration)
Then when your updater does it's job, it will update MyUpdater.exe as well as everything else.