Hi Amanda,
First of all I apologize for my delay reply.
Please keep in mind that the
UpgradeCode is a GUID representing a related set of products. A set of different versions of your application will have the same UpgradeCode. This enables newer versions of your application to search and upgrade previous versions installed on the same computer.
However, you can generate a new
ProductCode. This way, your installation package will identify(based on the
UpgradeCode) if there is a previos installed version and if it is, it will be uninstalled first and then will continue with the installation of the current version. Also, Windows Installer allows only one program with a given product code to be installed on a computer at a time. It will prevent the installation of a second MSI with the same Product Code as a currently installed one.
Also, during an
upgrade the original installation path will be used (
if this option is checked in the Upgrades page). By default a package uses the installation path of an older version when upgrading. If this option is unchecked, during an upgrade the package will use the Application Folder path defined in
Install Parameters page, ignoring the original one.
Please take a look on the
Product Identification article and on the
Changing Version article for a better understanding.
In order to automate your build process you can use a
file of commands where you can specify a text file containing a series of
edit commands that will be executed in sequence.
In order to execute a file of commands you can use the following syntax:
AdvancedInstaller.com /execute <path_to_project_file> <command_file_path>
Here's the command file which you can use to increase the product version:
Code: Select all
;aic
SetVersion -increment
Save
Rebuild
Please note that a new
Product Code will be generated if the new version is different from the old one, unless the -noprodcode option was used.
Also, in the
Media page you can rename your builds accordingly to you
ProductVersion (e.g. buildName[|ProductVersion]).
Please let me know if that helped, otherwise give us more details about your specific scenario.
Best regards,
Dan