Update System

Posts 1–8 of 8 · Page 1 of 1
Update System
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
Quote Originally Posted by edub18 View Post
Extract it as "Updater.exe.tmp" and then write a batch file, which deletes your old updater and renames the new one
I don't know how to write a batch file... But you mean like, a seperate application? That might work...
you can write batch files in notepad....very simple
Quote Originally Posted by Accelerate' View Post
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...
Quote Originally Posted by Blubb1337 View Post
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...
That's what I'll do, It doesn't seem hard, but if I run into problems, I'll PM you. A batch files seems kinda messy/unprofessional with that coming up.
Quote Originally Posted by Cryptonic View Post


That's what I'll do, It doesn't seem hard, but if I run into problems, I'll PM you. A batch files seems kinda messy/unprofessional with that coming up.
Alright, go ahead and do so.
Let your updater write this program:
Code:
del Updater.exe
rename Updater.exe.tmp Updater.exe
del %0
and then just execute it. It will delete the old updater, rename the new file and then delete itself
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us