What does 'Version' mean with the updater - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sherod
Posts: 5
Joined: Thu Oct 23, 2008 11:57 pm

What does 'Version' mean with the updater

The documentation states:
Registry Value

The location in the registry where the version is stored. You can either specify it directly or use the [ ... ] button to select it.

"RegistryKey" key from the Updates Configuration File

The recommended installed detection criteria is this:

* in the original installation package you create a registry entry which contains the version of the package (you can use the ProductVersion property)
* in the "Installed Detection" section of the Updates configuration project use this registry value as a detection criteria
* you set the version of the update package as the additional criteria

This way the Updater will verify which version of the package is installed.

Additional settings:

* Version - The version used for comparison. It can be directly specified or you can get it from a file. Use the [ ... ] button to select the file.
I don't understand what is meant by Version in the final paragraph, where is it looking for this Version value?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: What does 'Version' mean with the updater

Hi,

The Update properties page has three elements for the "Installed Detection" section:

1) Detect if the update is already installed by searching for a:
a) File
b) Registry value

2) Additionally use the:
a) Version
b) Size

3) Expected value

If you set a file as the detection criteria, you can use its version to determine if the update is installed or not. In this case, the "Expected Value" field should contain the version which the file would have after the update is applied. For example, you install "Package1.msi" which creates "MyApp.exe" v1.0.0. For another package which updates "MyApp.exe" to v1.0.1 you can select the "File" and "Version" options and set the "Expected Value" to "1.0.1". The same approach can be used for the "Size" of the file.

If you set a registry value as a detection criteria, this value should contain the version of the Update. For example, you install "Package1.msi" which creates a registry value set to "1.0.0". After that you create a new version of this package which sets the same registry value to "1.0.1". In this case, the new package can be used as an update with these options: "Registry value" and "Version" are selected and "Expected value" is set to "1.0.1".

Basically, you can use the version of a file installed by the Update package or the version stored in a registry value created by the Update package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”