Extract it as "Updater.exe.tmp" and then write a batch file, which deletes your old updater and renames the new one
So I have a fully working Updating system, but I have one problem. It extracts it's self after downloading the update, but, it extracts in the directory where it's running, so when it trys to extract, it can't since it's already running. So I'm not quite sure how to solve this :/
Extract it as "Updater.exe.tmp" and then write a batch file, which deletes your old updater and renames the new one
you can write batch files in notepad....very simple
Guess he knows that but does not know WHAT to write specifically...
I made another Program for my updater...I just pass the downloadstring to that program as parameter, the program then closes the previous version and downloads the new one and replaces it...If you want to do it with an extra program I can assist you...
Let your updater write this program:
and then just execute it. It will delete the old updater, rename the new file and then delete itselfCode:del Updater.exe rename Updater.exe.tmp Updater.exe del %0