VB.Net Program should auto update

后端 未结 5 1473
忘了有多久
忘了有多久 2020-12-17 08:08

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 o

5条回答
  •  再見小時候
    2020-12-17 08:29

    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.

提交回复
热议问题