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

Disallowing upgrade of wrong versions


2 replies to this topic

DeusApprime

DeusApprime
  • Members
  • 73 posts

Posted 27 November 2001 - 18:01

Hi, let's assume I am creating a project v1.5. This project can upgrade from v1.2, but not from earlier versions. So I write in the Upgrade table:
minversion:1.2.0
maxversion:1.5.0
But the installation still runs and doesn't give any errors - even if v1.0 is currently installed. I want to issue an error, sth like "you cannot upgrade from this version of <productname>". Any ideas?

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 27 November 2001 - 23:31

Create an extra entry in the upgrade table.
UpgradeCode = {UpgradeCodeGUID}
VersionMin = 0.0.0
VersionMax = 1.2.0
Attributes = 2
ActionProperty = DONTUPGRADE

Do not define the DONTUPGRADE property in the property table.

Create a custom action of type 19, the target is the error message that you would like to display.

Insert this custom action after the FindRelatedProducts action in both sequences.


DeusApprime

DeusApprime
  • Members
  • 73 posts

Posted 29 November 2001 - 11:16

Works like a charm... thank you!