Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8227075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:59:54+00:00 2026-06-07T15:59:54+00:00

I need to do a quick and dirty way of upgrading my application. Currently

  • 0

I need to do a quick and dirty way of upgrading my application.

Currently I have an exe per every release.

If exe is wrong i flash a message “relase X found on db, you are using exe for release Y, please download the correct vetsion”.

I have every exe at a fixed addresss, like:
http://myip.com/exes/N/Project.exe (where N is the releease)

So my idea was instead of the message above i would prompt the user “the correct exe will be downloaded, press ok to continue”.

my idea is after OK:

1) Run with ShellExecute another exe (let’s call id Update.exe) that takes care of downlaod and replace (this exe could be stored in exe resources)

2) Close the application

2) Update.exe will download the correct exe from internet and save it to a temp folder

4) Update.exe will delete Project.exe and replace it with the downloaded one

5) Update.exe will run the new Project.exe

So the corret exe will be run and the user will have the new exe in the same location as the old exe. This would be a non hortodox upgrade (not using Windos update, but believe me I need this. I don’t ue WIndows update).

Could you comment on this approach? Or suggest a similar trick?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:59:56+00:00Added an answer on June 7, 2026 at 3:59 pm

    I do this, and it works well for me:

    After OK, this is done in UpdateOKClick:

    1. Display a progress bar and use InternetReadFile to read the new version install executable and write it to a temporary file (use GetTempPath in the System unit).
    2. Display a message box stating “Download complete. Closing program to install new version.”
    3. Call ShellExecute to run the new version install executable from the temporary file location. The trick is that I call the install program (I’m using Inno Setup) with two special parameters: /silent and /noicons.
    4. Run Application.Terminate to close the program.

    The program terminates immediately, and the install has a bit of a delay to it, so it starts after the program is already closed. The user will see the install progress screen that Inno Setup displays, but because of the two parameters, it will not ask any questions.

    The final step of the Inno Setup install is to launch the program. It does so calling it with a /webupdate parameter.

    When the program is launched, it checks if the webupdate parameter was used. If so, it does any initialization necessary for the new version, and then displays a message box stating “Program is now updated to Version xxx”.

    There are a lot of checks and possible messages to issue along the way, including giving the user the option to cancel at any time, but that is basically it.

    … and I don’t have to delete the previous executable. It just gets overwritten. That will fail if the user has a second instance of the program open, but that’s another thing to check for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some (small amount) of data that I'll need quick access to on
need a quick help here. I have a series of hyperlinks all with the
Just need some quick clarification I have 2 Queries in my Access Database that
I have a demo scheduled with a client and i need a quick and
I need to create a quick and dirty solution to migrate data from database
I need do some quick and dirty logging and I was asked to write
I'm trying to run a query in a very quick and dirty way in
I need a (quick and dirty) solution to basically detect if a certain NSString
In a quick-and-dirty Perl script, I have a data structure like this: $tax_revenue{YEAR}{STATE}{GOVLEV}{TAX} =
Is there a way to do a quick and dirty 3D distance check where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.