+ Reply to Thread
Results 1 to 2 of 2

Thread: How can we stop installation with message if already same version setup is installed

  1. #1
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default How can we stop installation with message if already same version setup is installed

    Hello,

    Currently if we install one setup exe(version 1.0.0) and if we again try to install same exe(version 1.0.0) then it shows all screens and gets installed. As already product with 1.0.0 version is installed so if user tries to install a product with 1.0.0 version then user should get message that already this version is installed and installer should be closed. if user tries to install lower version than installed then user should get message that already higher version is installed do you want to continue??

    Is there any inbuilt function or check there in SB or do we have to handle this manually in script?

    Thanks in advance!!!

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How can we stop installation with message if already same version setup is instal

    Hello,

    Just use the "Detect Previous Version" in your script. This lets you detect a previously installed version of your product. It returns the installation path, the installed version, and more.

    For example:

    If %INSTALLEDVERSION% Version Less Than "1.0.1" Then
    Do whatever you have to do here
    End

    Does this help?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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