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 804435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:55:09+00:00 2026-05-14T23:55:09+00:00

How to check that oldest version of application was installed during process of installation

  • 0

How to check that oldest version of application was installed during process of installation new version? What do I mean? I want before start installation start check process with dialog “please wait”, if my installation found old version I can provide dialog “update or delete old and install new”.
How can I do it?
Thanks.

  • 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-05-14T23:55:10+00:00Added an answer on May 14, 2026 at 11:55 pm

    I’m not sure whether this can be done at all, as running an InnoSetup-setup always assumes that you want to install new or update an existing installation. I don’t think you can switch a setup from “installation mode” to “uninstallation mode” upon user’s choice as you’d like it to do.

    InnoSetup works differently than Windows Installer at that point. It has a separate installer and uninstaller as opposed to Windows Installer, which “contains both”.

    If you want that feature, you may want to look into Windows Installer XML (WiX), which creates MSI setups and can do exactly what you’re looking for.

    EDIT
    First of all, thanks for the downvote. I don’t quite know why anybody would downvote a perfectly reasonable reply, but I guess I’ll have to cope with it.

    To answer your comment about BeforeInstall: If you read the documentation you will notice that BeforeInstall is called before an item is installed. Quote from docs:

    The name of a function that is to be called once just before an entry is installed

    What you want to do comes down to:

    1. Decide whether the user should be able to choose if he wants to install or uninstall when setup is run
    2. install or uninstall depending on user’s choice

    What I’m trying to say is that as far as I know you can not switch from installation mode (setup.exe is run) into uninstallation mode (uninstall.exe is run) from your installation script.

    InnoSetup assumes that running Setup.exe is equivalent to wanting to installing or upgrading. I the user had wanted to uninstall, he would have run the uninstaller, not the setup.

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

Sidebar

Related Questions

I want to check that a file system path is valid and safe to
I want to check that some integer type belongs to (an) enumeration member. For
I want to check that text is now not present on a webpage without
How to check that notification is enabled on iPhone? I install the application, application
I need to check that a user have logged in and been authenticated before
I want to check that all links on a page contain a certain element.
I want to check that a user is included in a group. In an
I am trying to check that an address isn't being used before I delete
Is it possible to check that an object is in the context before trying
I want check that that provided Rss feed Link Is valid or not and

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.