Manish

Four digit Product Version

Hi,

Before we switched to MSI, we were using a 4 digit version for our product. We are using Advanced Installer and it allows me to enter a 4 part version number (for e.g. 2.4.1.10) But when I build a new release as 2.4.1.11, the fourth field is ignored by Windows installer.

So when the user tries to install the new release, Windows installer does says that the product is already installed.

One method that others use is that the 4th part is divided into 2 parts. For eg: 2.4.1_11. When we try this in Advanced Installer, it does not allow it.
However, I am sure many people use such version numbers.

How can I set the version number using the following scheme: X.X.X_X using Advanced Installer.

Thanx for ur help in advance
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hi Manish,

This is not possible. The Windows Installer technology, which is implemented by Microsoft and comes as standard on Windows platforms, uses only the first three fields (numbers) of the product version.

Best,

Mihai
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Manish

My main problem is that when I provide the users with a new release. For e.g. when I provide the user with 2.4.1.11 and he has 2.4.1.10 already installed. Now when he tries to install the new relaease, Windows Installers gives a message that the Product is already installed. So he has to uninstall and then re-install the package.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

I understand. That happens because Windows Installer ignores the fourth version field. It considers 1.1.1.1 and 1.1.1.999 as the exact same version.

You need to change the third (or second or first) version field when doing new releases.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

Or... work around the limitation manually. My work around was to call the AI twice, first with a version of 0, then with the build specific number that I want... example 4.1.2.12
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

This approach changes the ProductCode, but upgrading the application will not work.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Can I silently uninstall the previous build?

I have the same problem. Our current installers using InstallShield 7.1 are controlled by scripts and I am able to modify the logic to perform updates automatically for V.U.F.B to V.U.F.B+n

This is extremely helpful in testing - even though not necessary for a customer. For a customer we would update the F to a new fix level.

So, in the testing environment, is there a way I can force the uninstall of the previous build (if it is installed) without the pesky message showing up?
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Solution to V.U.F.B for development environment

I found a solution suitable for our development environment so I thought I would post it. This script would be packaged in a self-extracting exe built under an automated build procedure. Let's call it Setup.bat - and have it invoked when the self-extracting exe unpacks itself.

This uses a Vbscript found in the MS Platform SDK (WiLstPrd.vbs). If WiLstProd.vbs finds our current version not installed, then we go directly to install of our current build. If current version is installed, then passively uninstall it and wait for the user to press return. Then continue with install of current build. Seems to work fine for our need.

Be sure to package WiLstProd.vbs with the self-extracting exe - or have it in the path on every machine.

Code: Select all

@echo off
cd /d %~DP0
set ProductCode={7A58B3C7-BC23-4DB5-A878-30CB22F52164}

WiLstPrd.vbs %ProductCode%
if %ERRORLEVEL% NEQ 0 goto :INSTALL_CURRENT

Echo. When current build uninstalls completely, press return
msiexec /passive /uninstall %ProductCode%
pause

:INSTALL_CURRENT
Echo. Installing Current Build
MyProduct-4.2.0.41511.exe

jminsa
Posts: 25
Joined: Mon Oct 29, 2018 5:45 pm

Re: Four digit Product Version

This post sends you the wrong way to solve this problem.
Check out the following post which is the way to go:
viewtopic.php?f=2&t=35614&p=99378&hilit ... 3ce#p99378
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Four digit Product Version

Hello,

Thank you for contributing to our forums.
:)

I am sure this information will be of help for further users facing this scenario.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”