cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DLee65
Level 13

BASIC MSI - running repair after minor upgrade restores wrong version

QA is running tests for a product that has had a minor upgrade applied.
Original Install Location: \\network\App\Original\my.msi
New Minor Upgrade: \\network\App\Upgrade\my.msi

After the upgrade completes, they verify that the product is upgraded from 1.00.0000 to 1.01.0000 and that the upgraded files are installed.

For this repair test they go in and delete all the files included with 1.01.0000. They go to Add/Remove Programs, click on Change, and then run repair for the install. After the install is complete the user now has the original 1.00.0000 installed instead of the 1.01.0000 that we expected.

How do I ensure that repair restores the correct files after a minor upgrade?

Looking at the MSI file, repair is looking for the setup in:\\network\App\Original\my.msi.

Note that the test OS is Vista and of course it is using windows installer 4.0.
Labels (1)
0 Kudos
(9) Replies
DLee65
Level 13

Hmmm, could the reason be that I did not author a minor upgrade in the upgrade table ... 😮
0 Kudos
HennoKeers
Level 7

DLee65 wrote:
Hmmm, could the reason be that I did not author a minor upgrade in the upgrade table ... 😮


A save way in handling minor updates is to use patches; .msp's.
You can use quickpatch if you have only some files to replace.
It's quiet easy.

reg, Henno.
0 Kudos
Not applicable

Minor Upgrades are not authored in to the Upgrade table. The Minor Upgrade item in the IDE actually only runs validation during installation, hehe 🙂

At any rate, the behavior you're describing sounds like the minor upgrade didn't actually minor upgrade your product. Have you verified the ugprade in a log?

Also, the REINSTALLMODE property needs to have a 'v' in it or you're guaranteed to have issues.
0 Kudos
DLee65
Level 13

Thanks for the reply Bryan. I have verified that the REINSTALLMODE does include the 'v' switch, so that is not the issue.

What seems to be happening is that when I run repair from Add/Remove Programs is that the cached MSI database is running from the original source instead of the repaired source.

I ran a couple of tests this morning. This ONLY occurs when running repair from Add/Remove programs and only if I have updated the original setup from another full setup. If I delete the new files and launch the application then resiliency kicks in and the files of the correct version are restored.

If I create a downloadable patch and install it, then repair from Add/Remove Programs works correctly.

So based on these findings I can determine the following:
1. REINSTALLMODE is configured correctly.
2. The minor update did detect the original program otherwise all scenarios for repair would fail.

Now to determine why this particular implementation fails. Any ideas out there from the community ... or from the Macrovision team? Thanks. I have attached an MSI log from the ARP repair process.
0 Kudos
JPBRAAK
Level 2

Any news on this problem, I have found similar posts on several sites... none of them have an answer that solves this...

I know that a patch can do the trick, but this is something I would really like to know...

Jeroen ( PDS)
0 Kudos
DLee65
Level 13

No, I never found a solution. If repair from ARP is executed then the original files are restored not the files in the .msp. Resiliency Health Check works correctly. In the end I had to chalk it up to a limitation of the MSI engine. In these scenarios the user will be required to run the patch setup again.
0 Kudos
Not applicable

Sorry to not get back to you DLee65.

I meant to reply back that your log file indicates that you're suffering from the Windows Installer Repair bug, you can see it's setting REINSTALLMODE to the following value during reinstall:
REINSTALLMODE=ocmusv

Because it contains the 'v' parameter during the repair, it's going to recache the MSI package. That's obviously not even close to what you want to do.
0 Kudos
Tim_Mayert
Level 9

Did you get any where with this issue?

I ran into the same issue and I talked to Acresso Support about this and This is want they replied with:



The repair problem you are facing is linked to the value that Add Remove programs gives to REINSTALLMODE, the log files shows this:

REINSTALLMODE=ocmusv

The v in REINSTALLMODE for a repair causes very unwanted behavior, it causes Windows Installer to use the old source (original MSI) and also to re-cache that source so it becomes the default. This only happens if repair is launched from the repair button from ARP (though you can reproduce from the command line to see the behavior). There is no way to modify this behavior as it is part of the OS.

There are two things that you can do to prevent this:

1) Disable the Remove button in ARP

2) Delete the old cached MSI as part of the upgrade process. Then when MSI resolves source as it cant find the old one it uses LastSource which gives the expected behavior.

So to use the 2nd option we have to delete the old cached msi, but where would we find this?

If you have any other suggestions that are the the same as these then can you let me know?

Thanks,
0 Kudos
Richard_Winks
Level 6

After rereading the previous post it occured to me that there would be no further attempt to correct this behavior. The "REINSTALL=ocmusv" explanation suddenly made sense.

(I had originally posted)
Was this ever resolved?
I am currently using IS 2010

I'm experiencing the exact same issue with my Basic MSI installation.
Install 1.1
Minor Upgrade 1.2
Minor Upgrade 1.3
Repair from Add or Remove Programs Panel and it restores 1.1

Richard
0 Kudos