Self deletable application in C# in one executable

前端 未结 7 1817
北荒
北荒 2020-11-30 23:26

Is it possible to make an application in C# that will be able to delete itself in some condition.

I need to write an updater for my application but I don\'t want the

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 23:39

    Mhh so let me get this straight. You got some application.exe and your updater application updater.exe?

    So when you start your application.exe it checks some webserver for a newer version and then starts updater.exe. And you want updater.exe to delete itself after it has finished updating? Or do you want to delete the downloaded patch (or similar)? Please be a bit more precise.

    Consider that when you are deleting updater.exe you must recreate it for the next update process.

提交回复
热议问题