Self deletable application in C# in one executable

前端 未结 7 1816
北荒
北荒 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条回答
  •  萌比男神i
    2020-11-30 23:32

    Couldn't you simply delete the updater from within the application? i.e.:

    Application: Start -> [Delete old updater if present] -> Check version -> Download new updater -> Start updater -> exit;

    Updater: Start -> Perform update -> Start application -> exit;

    Application: Start -> [Delete old updater if present] -> ...

提交回复
热议问题