If condition, older version installing on top of new
Any ideas on how to have a MSI check if a newer version is installed? My guess is you'd have to setup a custom action or property?
Thanks for any help you can provide.
Thanks for any help you can provide.
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
AngelD
16 years ago
Have a look at Ed's description (second post) at http://forums.altiris.com/messageview.aspx?catid=20&threadid=47807&enterthread=y
Posted by:
Zerg
16 years ago
Awesome, thanks. I just found this too
http://msdn2.microsoft.com/en-us/library/aa370840(VS.85).aspx
It exists on the internet.. it's just a matter of correctly asking the question :)
http://msdn2.microsoft.com/en-us/library/aa370840(VS.85).aspx
It exists on the internet.. it's just a matter of correctly asking the question :)
Posted by:
AngelD
16 years ago
Posted by:
Zerg
16 years ago
Thanks for the reply. I can't get it to work and for the sake of discussion, let's assume we have App1.0 and App2.0. 2.0 will always remove 1.0. What I want is, when you install App1.0, it will not install if 2.0 is currently installed or basically only install itself or remove any previous versions. Doing what you said should accomplish this. How exactly would I take those steps? This is what I tried and it's not working:
- Kept upgrade codes between 1.0 and 2.0 the same, different product codes.
- Added a property called NEWERVERSIONFOUND to the 'SecureCustomProperties' property.
- Added 1.0 upgrade code to its own upgrade table. I set version min and max to 1.0. I then changed the 'Attributes' to 2. This sets the bit flag for msidbUpgradeAttributesOnlyDetect.
- Set the 'ActionProperty' to NEWERVERSIONFOUND.
- Created a condition in Execute Immediate with. If NEWVERSIONFOUND then Terminate Installation END
Installed 1.0, then 2.0. 2 removed 1. Installed 1 and it did not terminate installation.
Help!
- Kept upgrade codes between 1.0 and 2.0 the same, different product codes.
- Added a property called NEWERVERSIONFOUND to the 'SecureCustomProperties' property.
- Added 1.0 upgrade code to its own upgrade table. I set version min and max to 1.0. I then changed the 'Attributes' to 2. This sets the bit flag for msidbUpgradeAttributesOnlyDetect.
- Set the 'ActionProperty' to NEWERVERSIONFOUND.
- Created a condition in Execute Immediate with. If NEWVERSIONFOUND then Terminate Installation END
Installed 1.0, then 2.0. 2 removed 1. Installed 1 and it did not terminate installation.
Help!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.