/build/static/layout/Breadcrumb_cap_w.png

Upgrade code problem

Hi All,

I have a vendor msi and i have created transform for customization and deployed to the users.

Now i have to add additional files to the existing package. I have added new files to transform and added upgrade code to uninstall the previous version but the previous version is not uninstalling.

I suspect, the product code and upgrade code of old msi/transform & new transorm are same.

how can i uninstall the old package and install the new package.

Thanks..

0 Comments   [ + ] Show comments

Answers (14)

Posted by: Manu77 14 years ago
Orange Senior Belt
0
Ramu,

Try uninstalling previous version by adding custom action sequencing after AppSearch.
Hope it helps.

Manu
Posted by: ramu_ch 14 years ago
Orange Belt
0
Thanks Manu.

In Execute immediate / Execute Defferred context?
Posted by: ramu_ch 14 years ago
Orange Belt
0
Sorry Manu, I just realised that AppSearch is under User Intrface context.

what is the condition I have to use in my CA.
Posted by: Manu77 14 years ago
Orange Senior Belt
0
Condition - Not Installed
Posted by: ramu_ch 14 years ago
Orange Belt
0
No Luck..

here is my condition.

If Not Installed then
Run WiseScript Installation .\wisescript.exe
End

In WiseScript.exe, i am just uninstalling the package 'msiexec /x productcode /qn'

pls help to uninstall.

Ramu
Posted by: Manu77 14 years ago
Orange Senior Belt
0
Is Product Code also the same?
Posted by: anonymous_9363 14 years ago
Red Belt
0
What is all this nonsense with Custom Actions to uninstall?

An UpgradeCode will be used in conjunction with the FindRelatedProducts action to determine an application's upgradability. If you want to simply uninstall the previous version - not upgrade it - then move the RemoveExistingProducts CA to earlier in the sequence.
Posted by: cygan 14 years ago
Fifth Degree Brown Belt
0
Ramu,

Try uninstalling previous version by adding custom action sequencing after AppSearch.
Hope it helps.


no this will not help
what has appsearch got to do with an upgrade

as vbscab has said just move the removeexistingproduct action so it's after installvalidate but before installinitialize

Posted by: ramu_ch 14 years ago
Orange Belt
0
removeexistingproduct action is placed after installvalidate before installfinalise in my transform.

what do i need to do? do i need to create any entry?? can you please little bit in detail to understand.

Thanks~Ramu
Posted by: ramu_ch 14 years ago
Orange Belt
0
small correction:
removeexistingproduct action is placed after installvalidate before installinitialize in my transform.
Posted by: rayz_0020 14 years ago
Senior Purple Belt
0
1. If the product code and package code are same for your earlier and the current versions, upgrade will not happen. You must change these two codes in the current version's MSI (Changing this in MST wont help). I understand this is a VMSI but still I believe there is no other way. And make sure you do this change in MSI only with ORCA. Upgrade codes can be same. That is not a problem.
2. Make sure the upgarde table is properly populated with the upgrade code and the version details.
3. Place the action, RemoveExistingProducts between InstallInitialize and InstallValidate in Execute Immediate.

If you still face issues. check for the following actions in the log and post it here...
RemoveexisitingProducts
FindrelatedProducts
Posted by: anonymous_9363 14 years ago
Red Belt
0
Wait a second, wait a second...I've just re-read your original post.

What you need is neither an upgrade nor an uninstall. What you need is a RE-install:

MSIEXEC /I [path_to_and_name_of_MSI] REINSTALL="ALL" REINSTALLMODE=[your choice, but try "vomus"]
Posted by: ramu_ch 14 years ago
Orange Belt
0
Thanks for the help!!!

I sorted out this problem using a wrapper executable. Here are the steps and i successfully upgraded.
1. In my wise script, first i checked for the existing package with productcode and if it is installed, uninstalled.
2. then installing the new transform with the same old vendor supplied MSI.

Yes..this way i have completed my upgrade and installed new one.
once again thanks everyone for their suggestions.
~Ramu
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login

Share

 
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