I've been trying to create a package which will update Adobe Reader, removing any of several possible existing versions first. An added complication is that in the past I've installed two different MSIs which I now discover install the same version. I therefore have to try using both msis in turn to remove that version. This means that one of the msi's will return 1605 or the other 1638, i.e. one can't find the product, and the other says "another version is installed". I tested this quite extensively on one computer, where it worked. However on another computer, where Adobe Reader has been uninstalled, it tries to uninstall both 10.1.0 and 10.1.1, returns 1605 (treated as success) then does not attempt to install 10.1.2. The file it is testing doesn't exist on this computer. Can anyone see why? The package is: <package id="adobereader10-1-2" name="Adobe Reader 10.1.2 update" revision="3" priority="1" > <check type="file" condition="versiongreaterthan" path="%programfiles%\Adobe\Reader 10.0\Reader\AcroRd32.exe" value="10.1.2.0" /> <install cmd='msiexec /uninstall "%software%\adobe acrobat reader\10.1.1\AdbeRdr1011_en_US\AcroRead.msi"/qb /norestart' > <condition> <check type="file" condition="versionequalto" path="%programfiles%\Adobe\Reader 10.0\Reader\AcroRd32.exe" value="10.1.0.534" /> </condition> <exit code="1638"/> <exit code="1605"/> </install> <install cmd='msiexec /uninstall "%software%\adobe acrobat reader\10.1.0\AdbeRdr1010_en_US.msi"/qb /norestart' > <condition> <check type="file" condition="versionequalto" path="%programfiles%\Adobe\Reader 10.0\Reader\AcroRd32.exe" value="10.1.0.534" /> </condition> <exit code="1638"/> <exit code="1605"/> </install> <install cmd='msiexec /uninstall "%software%\adobe acrobat reader\10.0\AdbeRdr1000_en_US.msi"/qb /norestart' > <condition> <check type="file" condition="versionequalto" path="%programfiles%\Adobe\Reader 10.0\Reader\AcroRd32.exe" value="10.0.0.396" /> </condition> </install> <install cmd='msiexec /i "%software%\adobe acrobat reader\10.1.0\AdbeRdr1010_en_US.msi" TRANSFORMS="%software%\adobe acrobat reader\10.1.0\LBJ-setup.mst" /update "%software%\adobe acrobat reader\10.1.2\AdbeRdrUpd1012.msp" /qb /norestart' /> <upgrade cmd='msiexec /i "%software%\adobe acrobat reader\10.1.0\AdbeRdr1010_en_US.msi" TRANSFORMS="%software%\adobe acrobat reader\10.1.0\LBJ-setup.mst" /update "%software%\adobe acrobat reader\10.1.2\AdbeRdrUpd1012.msp" /qb /norestart' /> <remove cmd='msiexec /x "%software%\adobe acrobat reader\10.1.0\AdbeRdr1010_en_US.msi"/qb /norestart' /> </package> |