HI,
when i am installing later version of an msi while the older version is already present in system,it is upgrading to new version but it is showing entries of both versions in ARP.I added ARPSYSTEMCOMPONENT=1 ,but whats happening is new version entry is getting hided and the older version entry is present in ARP.
so how to hide old version entry and to get new version entry in ARP.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Goutham - When you are upgrading / uninstalling, previous version's "HKLM\Software\Microsoft\Windows\Current Version\Uninstall\<Product Key>" should get removed. Is that happening?
Answered 10/11/2011 by: murali.bhat
Purple Belt

Please log in to comment
0
ORIGINAL: Goutham

it is upgrading to new version but it is showing entries of both versions in ARP.


Really ? I think you will find you now have both old and new versions installed given that you have two entries in ARP



ORIGINAL: Goutham

I added ARPSYSTEMCOMPONENT=1 ,but whats happening is new version entry is getting hided and the older version entry is present in ARP.
so how to hide old version entry and to get new version entry in ARP.


All this is doing is trying the mask the problem that you have both old and new versions installed, and in any case adding ARPSYSTEMCOMPONENT to the new package is just going to conceal the new version ARP entry and do nothing with the old version entry.

You need to either look into using the UpgradeTable to perform an orderly uninstallation of the older version of the application, or find the uninstall string for the older version in the registry and make arrangements for this command to run before deploying the newer version.

Spartacus
Answered 10/11/2011 by: spartacus
Black Belt

Please log in to comment
0
Make sure you add the property you use for status checking (ActionProperty) in the Upgrade table to the SecureCustomProperties, and that the attributes value is higher than 2 (2 is detect only, do not uninstall). Double-check that you're using the correct UpgradeCode.

you're best off scheduling RemoveExistingProducts early for this type of upgrade (after InstallValidate).

Finally check the installer logs to verify that the previous version gets detected and uninstalled.

PJ
Answered 10/11/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
I have checked...its not getting upgraded.I have checked in registries,both versions are present.I have added the uninstall string in upgrade table and have done modification to secure custom properties in property table but its not getting upgraded.
Answered 10/11/2011 by: Goutham
Senior Yellow Belt

Please log in to comment
0
I have added the uninstall string in upgrade table ...

this sounds abit odd to me, could you paste the contents of your upgrade table here?

PJ
Answered 10/11/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
It is actually an upgrade? Sounds to me like its a new install. Depending on how your deploying the software, you could just script the uninstall of the privious and then install the new. This is my preference regardless because it leaves less change that the previous is affecting the new.

FYI, just declaring the ARPSYSTEMCOMPONENT property can cause an install to be hidden from ARP regardless of 1 or 0. If the wrong one is being hidden, you have probably attached it to the wrong GUID which can be confirmed post install in HKLM\Software\Microsoft\Windows\Current Version\Uninstall\<Product Key>. You can play around with this by adding/changing/deleting the SystemComponent reg key. Don'e delete the entire GUID and be sure to back it up before you play around with it.
Answered 10/11/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity