Results 1 to 9 of 9

Thread: [2.0] Update?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2.0] Update?

    How do you update the exe? I have it already download the updated exe from a webserver but how do you replace it?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] Update?

    Which exe? Did you write it yourself? Do you have its source code? Are you looking to get your own exe to perform auto-updates on itself?

    We don't read minds, so you'll need to elaborate.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] Update?

    Quote Originally Posted by mendhak
    Which exe? Did you write it yourself? Do you have its source code? Are you looking to get your own exe to perform auto-updates on itself?

    We don't read minds, so you'll need to elaborate.
    Well what i want to do is have my exe check my website for any updates. If it finds any then download it and replace itself with the update.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] Update?


  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] Update?

    Quote Originally Posted by mendhak
    Problem is replacing the running exe.

  6. #6
    Addicted Member
    Join Date
    Dec 2005
    Posts
    139

    Re: [2.0] Update?

    Then create a small updater exe that does the actual updating.

    This app should be as simple a possible:
    1. Main exe launches updater exe
    2. Updater exe check for updates
    3. If updates are found, then updater exe closes/kills main app and applies updates
    4. Updater launches main exe and exits

    CT

  7. #7
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: [2.0] Update?

    click once does this for you automatically..have you considered making your app a click once app?

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] Update?

    Quote Originally Posted by Cavar
    Then create a small updater exe that does the actual updating.

    This app should be as simple a possible:
    1. Main exe launches updater exe
    2. Updater exe check for updates
    3. If updates are found, then updater exe closes/kills main app and applies updates
    4. Updater launches main exe and exits

    CT
    I tried that but the main app doesn't close fast enough, even when I use waitforexit().

  9. #9
    Addicted Member
    Join Date
    Dec 2005
    Posts
    139

    Re: [2.0] Update?

    Quote Originally Posted by high6
    I tried that but the main app doesn't close fast enough, even when I use waitforexit().
    How long is it taking to close? How is your updater exe closing your main app?

    In the past, I have used a method like this to send a windows message to the main app to close it and have never had an issue with the main app not closing fast enough.

    CT

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width