10.2 Build test loop always requires an uninstall - Advanced Installer Community
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

10.2 Build test loop always requires an uninstall

When testing one needs to install many times, each test requires an uninstall. Is there a way to get the version to increment automatically so the previous version is uninstalled. How do I get the current version to always uninstall so I don't have to go to control panel and uninstall it. This adds time and requires more automation. Is there a way to set the version number programmatically . Do I need to use CLI to do this? IS there a command in windows to uninstall that doesn't ask the questions designed for a consumer that a developer doesn't care about.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 10.2 Build test loop always requires an uninstall

Hello,

Please keep in mind that you don't need to go to Control Panel to uninstall the version of your product when you test it. Also, you don't need to increase its version number. You can achieve the desired functionality within Advanced Installer application.

When you create and test a package you can simply use the [Run] toolbar button from Advanced Installer and this way, the previous version is automatically uninstalled and the new one is installed, so you can test your package as much as you want.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: 10.2 Build test loop always requires an uninstall

Dan,

Thank you for the response. We use Continuous integration and in test mode. I am trying to figure out how to remove the previous version on another system or just update it when using this type of automation at AWS. I will write it up if we can get it to work because it is very useful to run the build with automated install testing. Is there a way to pass the version number in on the CLI interface for AdvancedInstaller?

Rinaldo
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 10.2 Build test loop always requires an uninstall

Hello,

In order to achieve that you can use a set version command. Also, you can increment the existing product version by using the "-increment" parameter.

Code: Select all

AdvancedInstaller.com /edit MyProject.aip 
    /SetVersion 1.2
Also you can use executing a file of commands where you can specify a text file containing a series of edit commands that will be executed in sequence.

Please notice that the modification is performed in three stages, sequenced as follows:
1. Load
2. Modify
3. Save

Also, starting with 10.2 version of Advance Installer there is the ability for Bootstrapper to remove a previous version of the package it installs.

In order to achieve that you can select from “Media” page >> “Configuration” tab the “Exe setup with resources next to it” option.
Then from the “Bootstrapper Options” pane you can select the “Uninstall a package with same version(if found)”.

Let us know if that helped. If you have any questions feel free to contact us.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: 10.2 Build test loop always requires an uninstall

Excellent -- Thank you.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 10.2 Build test loop always requires an uninstall

You're welcome. I'm glad you got this working.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”