Software Question

Uninstall old programversion when installing new programversion, with msi

07/02/2014 6091 views

I am trying to create an Uninstall with my install.msi which I am editing with Orca. I would like to uninstall programversion 7.01 and install version 7.1. Under the Table "Upgrade" I have
"UpgradeCode" set to the Windows Installer Code ,
"Attributes" set to 4 (read this but dont know why 4)
"ActionProperty" set to ActionProperty
For the rest of them  I have no values at all set ("VersionMin", "VersionMax", "Language", "Remove".
Then I went to Table Property and added the
"Property" SecureCustomTransform
with the
"Value" ActionProperty.
I saved the msi and ran
msiexec /i Install.msi /qn
but nothing happened. I had  programversion 7.01 installed and I want it uninstalled and ver 7.1 installed.
I guess I need to add more values somewhere.

Grateful for any tips at all.

0 Comments   [ + ] Show comments


All Answers

Did you set different product code, but same update code?

I always set to 769 (from Microsoft side) seems to work best with major upgrade.
and actionproperty set to UPDATE (also from the website)

Microsoft tech page
Answered 07/02/2014 by: dedenker
3rd Degree Black Belt

  • As the updatecode I took the Windows Installer Code from the install.msi package.
    What do you mean with product code and where should it be set?

    Attribute 769 ( i cant find info regarding this in your linked tech page) what does it do/mean?

    I will change actionproperty to UPDATE , ( i cant find info regarding this in your linked tech page) what does it do/mean?

    • Every MSI has product code (this is also used if you want to uninstall) and an upgrade code.
      Both are on the "Property" table.

      The 769 is a combination of the features:

      But 4 should work as well.
      • This content is currently hidden from public view.
        Reason: Removed by member request For more information, visit our FAQ's.
      • Ok. I will use 769.
        Neither the product code, the upgrade code or the old msi (teh one I want to uninstall) works when I use them under Table-Upgrade.
        Can you write an exampleview of Table-Upgrade and Table-Property?I cant find the error on why the edited msifile won´t work. Perhasp it is because EndNote has the same WindowsInstaller-iD regardless of versionupdate within version 7.
This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.
Old msi (to be removed):                                                New msi (that will remove old):
Product code: 1234                                                         Product code: 5678
Upgrade code: ABCD                                                      Upgrade code: ABCD
Version: 1.0                                                                     Version 1.1

And in the Upgrade table of the new MSI:
UpgradeCode Column:    ABCD
VersionMin:                      1.0
Attribute:                           769
ActionProperty:                 UPGRADE
Answered 07/04/2014 by: dedenker
3rd Degree Black Belt

  • Good examples. Sadly it does not work when I run the msi. Probably because the Product Code is the same in old msi and new. I do not know why the product codes (windows installer id) are the same for old and new versions of EndNote X7. I I will try this on other programupdate than EndNote. This is the only program I have been in contact with that has the same product code for all versions 7.x. Would have been nice to use this on EndNote though.
    Besides the example above should I have “SecureCustomTransform” set to UPGRADE (Property Table) ? I tried both with and without.
    • Thank you. And strange if both product code are the same means for windows it is the same product.

      But I did already see many times, a vendor just re-uses the MSI and thus making very ucly and/or messed up installations...

      You can always adjust the original MSI with a MST.
      • I usually use mst but I would like to be able to keep the uninstall msi in the install msi so it installs the new version wheterornot the old is installed. And so I dont get an error (red)in SCCM 2012 monitoring tool.
        I´ll have to try this later on with versions with two different productcodes. If you get more info on how to solve this please get back to me in this forum. Thanks!

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ