Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Preventing earlier version to get installed


1 reply to this topic

Dejan

Dejan
  • Members
  • 10 posts

Posted 23 April 2002 - 13:29

Hello, can please someone help me solve this problem.

I'm doing a major upgrade for every new release and this works fine. Current release version of setup.exe is 1.16. But... I tried to install 1.14 over 1.16 just to check what would happen and i got two applications in add/remove programs applet. I have uninstalled 1.16 from ARP  and started 1.14 but 1.16 version got started... So my question is: How to prevent an earlier version of application to GET INSTALLED where a newer version ALREADY EXISTS?

Regards, Dejan

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 24 April 2002 - 00:08

I have an extra line in my upgrade table that detects newer versions, then I throw an error if it is present.

The entries you need are:
Upgrade code:  <Upgrade GUID>
Version min:  <Current Version>
Version max:  Blank
Attributes:  2
ActionProperty:  NEWERVERSIONS

I then have a custom action in both sequences, if the property NEWERVERSIONS is set, it displays an error asking for the removal of the existing version.
Leigh Ravenhall
Expert Information Services