Results 1 to 3 of 3

Thread: RemoveExistingProducts does not Remove Existing Products

  1. #1
    Join Date
    Oct 2001
    Posts
    44,727

    RemoveExistingProducts does not Remove Existing Products



    I am trying to do a Major upgrade using the directions on the Upgrading.htm
    from Installsite. It appears that RemoveExistingProducts is not removing
    the old version, I end up with two entries for my product in Add/Remove
    Programs.

    My old revision is 1.9. Has a revision string of 1.9.309.0
    My new revision is 2.0. Has a revision string of 2.0.371.0

    I have done the following:

    Put the upgrade code in the upgrade table. Version min is 0.0.0. Version
    max is 1.9.310.
    Attributes are 1025.
    Action Property is OLDPRODUCTS

    I added SecureCustomProperties with the value OLDPRODUCTS to the property
    table.

    I changed the PackageCode and the Product code. And the the Product Version
    string.

    I put an text box on the Welcome dialog to display [OLDPRODUCTS]

    I created a CA to display the value of SecureCustomProperties and
    OLDPRODUCTS. I inserted this CA in the execute sequence immediately before
    RemoveExistingProducts.

    I verified that FindRelatedProducts and RemoveExistingProducts are in the
    sequences. RemoveExistingProducts is the last of the execute sequences.
    FindRelatedProducts is in the user interface before AppSearch and in the
    execute sequence under LaunchConditions.

    I install the 1.9 version.

    I then start my 2.0 installer. The upgrade code GUID appears in the text
    box. This tells me that OLDPRODUCTS is getting set.

    I select the same feature that I had installed with the 1.9 installer. The
    install completes with no errors. The CA displays that
    SecureCustomProperties contains OLDPRODUCTS and that OLDPRODUCTS contains
    the upgrade code GUID.

    The log (/l*v) contains the following about RemovExistingProducts:

    MSI (s) (F8:44): Doing action: RemoveExistingProducts
    Action start 12:17:28: RemoveExistingProducts.
    Action ended 12:17:28: RemoveExistingProducts. Return value 1.
    MSI (s) (F8:44): Doing action: CleanUp

    Note that the time for start and end is the same.

    Help.

    -David


  2. #2
    Join Date
    Oct 2001
    Posts
    44,727

    Re: RemoveExistingProducts does not Remove Existing Products



    The revision strings you mention - are they the actual values for the
    ProductVersion property in the old and new MSI files? You seem to have the
    symptoms of it not actually finding the existing products.
    RemoveExistingProducts isn't doing anything. Watch for typos, casing etc as
    well, they can bite,as you've probably discovered.

    There are some ProductLanguage rules too - make sure you're also following
    the rules described in the MSI help topic "Preparing an Application for
    Future Major Upgrades" and "How do I prevent an old package from installing
    over a newer version?"

    "David Teichholtz" <davet@xevo.com> wrote in message
    news:3ac8bbf1$1@12.41.20.38...
    > I am trying to do a Major upgrade using the directions on the
    Upgrading.htm
    > from Installsite. It appears that RemoveExistingProducts is not removing
    > the old version, I end up with two entries for my product in Add/Remove
    > Programs.
    >
    > My old revision is 1.9. Has a revision string of 1.9.309.0
    > My new revision is 2.0. Has a revision string of 2.0.371.0
    >
    > I have done the following:
    >
    > Put the upgrade code in the upgrade table. Version min is 0.0.0. Version
    > max is 1.9.310.
    > Attributes are 1025.
    > Action Property is OLDPRODUCTS
    >
    > I added SecureCustomProperties with the value OLDPRODUCTS to the property
    > table.
    >
    > I changed the PackageCode and the Product code. And the the Product
    Version
    > string.
    >
    > I put an text box on the Welcome dialog to display [OLDPRODUCTS]
    >
    > I created a CA to display the value of SecureCustomProperties and
    > OLDPRODUCTS. I inserted this CA in the execute sequence immediately
    before
    > RemoveExistingProducts.
    >
    > I verified that FindRelatedProducts and RemoveExistingProducts are in the
    > sequences. RemoveExistingProducts is the last of the execute sequences.
    > FindRelatedProducts is in the user interface before AppSearch and in the
    > execute sequence under LaunchConditions.
    >
    > I install the 1.9 version.
    >
    > I then start my 2.0 installer. The upgrade code GUID appears in the text
    > box. This tells me that OLDPRODUCTS is getting set.
    >
    > I select the same feature that I had installed with the 1.9 installer.
    The
    > install completes with no errors. The CA displays that
    > SecureCustomProperties contains OLDPRODUCTS and that OLDPRODUCTS contains
    > the upgrade code GUID.
    >
    > The log (/l*v) contains the following about RemovExistingProducts:
    >
    > MSI (s) (F8:44): Doing action: RemoveExistingProducts
    > Action start 12:17:28: RemoveExistingProducts.
    > Action ended 12:17:28: RemoveExistingProducts. Return value 1.
    > MSI (s) (F8:44): Doing action: CleanUp
    >
    > Note that the time for start and end is the same.
    >
    > Help.
    >
    > -David
    >
    >


  3. #3
    Join Date
    Oct 2001
    Posts
    44,727

    re:RemoveExistingProducts does not Remove Existing Products



    Thanks for the input Phil.

    I don't think the problem is due to not finding the existing products. As I
    mentioned, OLDPRODUCTS is being set with the GUID as expected. I know this
    because I am displaying it in the welcome dialog. I think the question is
    why RemoveExistingProducts is not doing anything. It is unhappy about
    something and not telling me what it is.

    -David
    davet@xevo.com

    "Phil Wilson" <phil.wilson@unisys.com> wrote in message
    news:3ac90bd9$1@12.41.20.38...
    > The revision strings you mention - are they the actual values for the
    > ProductVersion property in the old and new MSI files? You seem to have
    the
    > symptoms of it not actually finding the existing products.
    > RemoveExistingProducts isn't doing anything. Watch for typos, casing etc
    as
    > well, they can bite,as you've probably discovered.
    >
    > There are some ProductLanguage rules too - make sure you're also following
    > the rules described in the MSI help topic "Preparing an Application for
    > Future Major Upgrades" and "How do I prevent an old package from
    installing
    > over a newer version?"
    >
    > "David Teichholtz" <davet@xevo.com> wrote in message
    > news:3ac8bbf1$1@12.41.20.38...
    > > I am trying to do a Major upgrade using the directions on the
    > Upgrading.htm
    > > from Installsite. It appears that RemoveExistingProducts is not
    removing
    > > the old version, I end up with two entries for my product in Add/Remove
    > > Programs.
    > >
    > > My old revision is 1.9. Has a revision string of 1.9.309.0
    > > My new revision is 2.0. Has a revision string of 2.0.371.0
    > >
    > > I have done the following:
    > >
    > > Put the upgrade code in the upgrade table. Version min is 0.0.0.
    Version
    > > max is 1.9.310.
    > > Attributes are 1025.
    > > Action Property is OLDPRODUCTS
    > >
    > > I added SecureCustomProperties with the value OLDPRODUCTS to the
    property
    > > table.
    > >
    > > I changed the PackageCode and the Product code. And the the Product
    > Version
    > > string.
    > >
    > > I put an text box on the Welcome dialog to display [OLDPRODUCTS]
    > >
    > > I created a CA to display the value of SecureCustomProperties and
    > > OLDPRODUCTS. I inserted this CA in the execute sequence immediately
    > before
    > > RemoveExistingProducts.
    > >
    > > I verified that FindRelatedProducts and RemoveExistingProducts are in
    the
    > > sequences. RemoveExistingProducts is the last of the execute
    sequences.
    > > FindRelatedProducts is in the user interface before AppSearch and in the
    > > execute sequence under LaunchConditions.
    > >
    > > I install the 1.9 version.
    > >
    > > I then start my 2.0 installer. The upgrade code GUID appears in the
    text
    > > box. This tells me that OLDPRODUCTS is getting set.
    > >
    > > I select the same feature that I had installed with the 1.9 installer.
    > The
    > > install completes with no errors. The CA displays that
    > > SecureCustomProperties contains OLDPRODUCTS and that OLDPRODUCTS
    contains
    > > the upgrade code GUID.
    > >
    > > The log (/l*v) contains the following about RemovExistingProducts:
    > >
    > > MSI (s) (F8:44): Doing action: RemoveExistingProducts
    > > Action start 12:17:28: RemoveExistingProducts.
    > > Action ended 12:17:28: RemoveExistingProducts. Return value 1.
    > > MSI (s) (F8:44): Doing action: CleanUp
    > >
    > > Note that the time for start and end is the same.
    > >
    > > Help.
    > >
    > > -David
    > >
    > >
    >
    >


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •