Thread: Update System

Results 1 to 8 of 8
  1. #1
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored

    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 :/

  2. #2
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    Extract it as "Updater.exe.tmp" and then write a batch file, which deletes your old updater and renames the new one

  3. #3
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Vanoq 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...

  4. #4
    Accelerate''s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    you can write batch files in notepad....very simple

  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    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...



  6. #6
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    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

  7. #7
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    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.

  8. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by PepsiXHacker 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.



Similar Threads

  1. [Preview] Korea SuddenAttack New system update+
    By JeungHun in forum Sudden Attack General
    Replies: 5
    Last Post: 09-12-2011, 07:37 AM
  2. [Preview] Updated replay system coming
    By amarshonarbangla01 in forum CrossFire Discussions
    Replies: 11
    Last Post: 07-19-2011, 03:56 PM
  3. [Release] *UPDATED* [XCS] XpliCitts CA System [Multi-TOOL] [10/21]
    By -XpliCitt- in forum Combat Arms Hacks & Cheats
    Replies: 522
    Last Post: 12-27-2009, 12:49 AM
  4. Hacks / System Update
    By Dave84311 in forum Hack/Release News
    Replies: 17
    Last Post: 03-24-2009, 01:03 AM
  5. System Updates
    By Dave84311 in forum Hack/Release News
    Replies: 0
    Last Post: 01-26-2008, 04:49 PM