Bug 8518 - unable to install higher major revision when minor revision is lower
: unable to install higher major revision when minor revision is lower
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Setup
: 7.1
: PC Windows XP
: -- blocker (vote)
: 7.x
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-20 11:19 UTC by James Richardson
Modified: 2009-09-08 09:21 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Richardson 2008-06-20 11:19:40 UTC
I am unable to "downgrade" Windows versions of SC when a higher build number already exists on the system, even if the Version number is different.

Steps to reproduce:

Install 7.1 - 20942 to a Windows XP/Vista system
Run SN to make sure it works
With the server either running OR off, install 7.0.1 (release)
OR
Install 7.2 - 20932

Notice that SC 7.1 - 20942 is still present on the system.

I would need to uninstall SC first in order to install a previous version.
----
NOTE: Add/Remove programs (Windows Uninstall) shows the "proper" version as having been installed and available for removal, even though the incorrect version is installed
-----
NOTE: This is also a problem with 7.0.1 > 7.0 (release versions)
Comment 1 Andy Grundman 2008-06-20 11:52:18 UTC
Think this is a bug for Michael.
Comment 2 Michael Herger 2008-06-20 13:44:11 UTC
I was tempted to set the severity to minor. Isn't this related to what I've fixed today: if you try to install another SC while the scanner is still running, it can't fully uninstall. Obviously this can't be fixed in the older versions. So downgrading will always be a bit of a problem: we can't fix the older version.

I'd assume that a reboot in between would resolve this.
Comment 3 James Richardson 2008-06-20 14:24:20 UTC
Michael: no this is not related to the scanner, as NO files are over written.

Not just the scanner, but any of the files never get over written.

This is the case even if I stop SC
Comment 4 James Richardson 2008-06-20 14:26:03 UTC
> 
> I'd assume that a reboot in between would resolve this.
> 
NO, rebooting between installs does not result in expected behavior.
Comment 5 Michael Herger 2008-06-21 04:54:13 UTC
Well, maybe the official way to downgrade should be getting rid of your install first? I don't see why we should bother about this, really.

Installers usually don't overwrite newer versions of a file, as they might have been updated by something else. 

Downgrading might even be impossible, because incompatible changes happened. 

Really, this is no blocker - does 7.1 require to be downgraded to be released? If this is needed, then there's something wrong with our release which needs be fixed.

I'd like to close this as "wontfix".
Comment 6 James Richardson 2008-06-22 10:24:34 UTC
Michael:  you make very good points, I think the major issue here is that I could not install 7.2 over 7.1 when the minor version number was higher.

Install 7.1 - 20942 > Install 7.2 - 20932 = FAIL

This is a bigger issue then attempting to install 7.0.1 > 7.1.

In any case, why not just have any version of SC auto-uninstall a previous version before installing a new version?

Many other software applications do this already, including the MAC version.


Comment 7 Michael Herger 2008-06-23 01:02:35 UTC
Wow, good catch! This got me puzzled, as on installing a different version the revision number would change, but not the version number. It turned out that while the binary indeed wasn't replaced, all the perl modules and other files (skin, revision.txt etc.) were. This issue very likely showed up due to change 20597 (in response to bug 8166), adding version information to the binaries.

change 21031 - ignore the version information during install.

Please note that this will not help installing 7.0.x over 7.1, or an earlier 7.1 over todays+ builds. As mentioned earlier: we can't fix the previous installers.
Comment 8 James Richardson 2008-06-25 11:37:01 UTC
Verified error still happens when installing 7.2-21119 over 7.1-21126

Squeezecenter.exe / scanner.exe not overwritten, even if the server is stopped.

Files that have version information show that 21126 still installed.
Comment 9 Michael Herger 2008-06-25 13:12:31 UTC
change 21164 - don't use comparetimestamp flag in Windows installer - even the InnoSetup author does not recommend it
Comment 10 Michael Herger 2008-06-26 02:59:45 UTC
Change 21031 I did made the installer ignore version information in the file. But it would still compare timestamps of the files. Thus 7.2-21119 < 7.1-21126, as the latter has been built after the former. Change 21164 removes the timestamp check too.

7.1-21175 on top of 7.2-21168: ok, version checking is disabled.
7.2-21168 over 7.1-21175: ok, revision checking & timestamp check disabled

we'll have to test the case where version and revision are smaller, too. Please re-open if this still fails. Thanks!
Comment 11 James Richardson 2008-07-09 08:20:41 UTC
Verified fixed in 7.1-21576 > 7.2-21568
Comment 12 Chris Owens 2008-07-30 15:31:20 UTC
This bug has now been fixed in the 7.1 release version of SqueezeCenter!  Please download the new version from http://www.slimdevices.com if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 13 James Richardson 2008-12-15 12:32:56 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 14 Chris Owens 2009-07-31 10:23:06 UTC
Reduce number of active targets for SC