PatchCache version problem
I am developing installer for my product "product1". Our product supports both upgrades and downgrades from any version to any version. i am not providing upgrade/downgrade information inside MSI setup. "Product1" setup MSI just had plain components. To achieve any version to any version upgrade/downgrade, just provide "reinstall=all reinstallmode=vamus" parameters, so that always running MSI components will be placed inside installation directory (irrespective of running msi is newer or older) . So far this method works for almost 5 years. All the components/files in the MSI are signed. Proper version info embed in each component/file. My product supports XP (both 32bit and 64bit). Now we are going to support windows-7 also. We ran few tests on our test setup. Fresh installation works as good as on xp. But upgrade/downgrade causing problems in some cases. Problem: On upgrade/downgrade running MSI files are not updating to installation directory on windows7(both 32bit and 64bit). But on xp no issues. Testcase: take 2 versions of "product1" (1.2.2.2 and 1.2.2.3). 1) install 1.2.2.2 by msiexec /i 1.2.2.2.msi 2) downgrade to 1.2.2.1 had no issues msiexec /i 1.2.2.1.msi REINSTALL=ALL REINSTALLMODE=vamus 3) upgrade to 1.2.2.2 causes problem msiexec /i 1.2.2.2.msi REINSTALL=ALL REINSTALLMODE=vamus 4) retry to upgrade again to 1.2.2.2 . msiexec /i 1.2.2.2.msi REINSTALL=ALL REINSTALLMODE=vamus This time no issues. Observation-1: I ran above test on different different versions. --> upgrade/downgrade between 1.2.1.1 and 1.2.2.1 working as expected --> upgrade/downgrade between 1.2.1.1 and 1.2.1.2 is not working as expected --> upgrade/downgrade between 1.2.2.1 and 1.2.2.2 is not working as expected windows installer is considering version up to a.b.c. Upgrade/downgrade between a.b.c.x and a.b.c.y is causing problem on windows-7 Observation-2: I compared logs on xp and win7. I found following difference. XP: SetSourceFolder(Folder=1\PROGRA~1\company~1\product~1\drivers\|program files\companyname\productname\drivers) win7: Executing op: SetSourceFolder(Folder=C:\Windows\Installer\$PatchCache$\Managed\A7C0B53D545489A48A0183013BEF525E\1.2.2) Observation-3: one of the component in MSI say "comp1" had 2 files say file1, file2. File1 is keypath to the component comp1. at the time of problem comes (step 3), file1 is not getting updated. But file2 is updating properly. My questions: 1) does windows installer behavior changed on win7? 2) does installer takes only a.b.c as version information? will it ignore after that Rajesh A
June 20th, 2011 3:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics