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


          • #6
            Hello Team,
            Iam using MSI factory version 2.2.1000.0 , I want custom uninstall using lua script, please share the script todo silent uninstall for previous version

            advanced thanks
            arun

            Comment


            • #7
              Originally posted by arun View Post
              Iam using MSI factory version 2.2.1000.0 , I want custom uninstall using lua script, please share the script todo silent uninstall for previous version
              This sub forum is for Setup Factory, not MSI Factory. MSI Factory uses Windows Installer, where you should follow appropriate rules/settings to uninstall a previous version as part of the new deployment process.

              Ulrich

              Comment


              • #8
                Hello Sir, Thank you very much for guiding me,

                My requirement customer can install anydirectory, anyfolder in his system. on the next upgrade version I have to find if customer installed previous version
                then uninstall silently.

                MSI factory/settings incrementing upgrade code does uninstall any previous version automatically,
                But I need custom .lua script to uninstall the installed MSI


                prevInstance = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uni nstall\".."myproduct", "DisplayVersion", true);

                if(prevInstance)
                {
                //run uninstaller script
                File.Run();
                }



                ​Can you give me the script to uninstall,

                Advanced thanks for your support,

                thanks & regards,
                arun.















                Attached Files

                Comment

                Working...
                X