Announcement

Collapse
No announcement yet.

Uninstall older version.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Uninstall older version.

    Good morning, reviewing the installation windows, i came upon an issue, when i tried to generate an uninstall an older version window i was unable to found it anywhere, as this is a pretty standard window in all kind of installers i'm wondering why there is none to be found in setup factory?

    Can you please help me in here? as i don't know how to generate an uninstall older version of the program inside my installer project. And i seriously need it ASAP.
    Thanks and ill be awaiting a reply.

  • #2
    The screen I developed is a custom screen, and in its On Preload event script a search is performed in the registry for a previous install of the current product. In case no previous install was found, the screen is skipped and the next dialog would be shown instead. In the case that the product had been installed previously, the screen is displayed, offering a checkbox to perform a uninstall of the existing version. The script can be modified further, if needed, of course. ​The removal of the existing product happens during the On Pre Install event script, also using custom Lua script. For this to be as smooth as possible, it is best to allow silent uninstallation, which is an option/feature set in the uninstall settings of your project. Of course, if the existing product was deployed using an uninstaller which was not configured to allow a silent uninstall, the product cannot be removed in unattended mode - the user will need to click through the uninstaller screens. The updated version can change this behavior, so the next upgrade or reinstall could be performed with less user interaction.

    ​Automatic uninstallation, modification or repair of an existing installation is a feature of Windows Installer based setups, which is not the case of Setup Factory. You could get this function automatically if you create your setup with MSI Factory (and it causes issues in many cases when the removal of the existing product is not desired), but in a more flexible and scripted environment like Setup Factory, you have full freedom to perform these tasks in the manner you want or need.

    If you need assistance with your project, please contact me at my site, and send me the project file. I can add the screen and required code to your project for you.

    Ulrich

    Comment


    • #3
      Ok thank you very much, mindquake its the site right? In there i can only find the contact form, but cant find a way to send the project file.

      Comment


      • #4
        I just sent you an email to the address associated with your forum user account.

        Ulrich

        Comment


        • #5
          HI Ulrich,
          May I request for the screen and code for the installation of older version of the application for setupfactory?

          Comment

          Working...
          X