diff --git a/foxitreader.xml b/foxitreader.xml index 263b53c83d9e5cbe4220ea6a6c3a7e9c3746e4f8..bf3ad58557e6bfacce196fcb28831dc2d26d854b 100755 --- a/foxitreader.xml +++ b/foxitreader.xml @@ -1,25 +1,27 @@ <?xml version="1.0" encoding="UTF-8"?> <packages> - <package id="foxitreader" name="Foxit PDF Reader" revision="%version%.4" priority="0" reboot="false"> - <variable name="version" value="8.0.2.805" /> <!-- see comment below if you change this! --> - <variable name="fileversion" value="802" /> - <variable name="updater_version" value="8.0" /> + <package id="foxitreader" name="Foxit PDF Reader" revision="%version%.1" priority="0" reboot="false"> + <variable name="version" value="8.2.1.6871" /> <!-- see comment below if you change this! --> + <variable name="fileversion" value="821" /> + <!-- so far, the only way I know to check the following value is: install the new version, + open/close Foxit, check existence of HKCU\software\foxit software\foxit reader %reg_version% --> + <variable name="reg_version" value="8.0" /> <check type="uninstall" condition="versiongreaterorequal" path="Foxit Reader" value="%version%" /> <!-- make sure you get the "Enterprise" MSI; see wpkg.org for the link --> <install cmd='msiexec /qn /norestart /i %software%\foxit\FoxitReader%fileversion%_enu_Setup.msi DESKTOP_SHORTCUT=0 MAKEDEFAULT=0 ALLUSERS=1' /> - <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%updater_version%" /ve /d "FoxitReader Settings" /f' /> - <!-- Need to bump the value of Version (the thing specified by /d) on the next line when doing an upgrade that does not change %updater_version% . + <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%reg_version%" /ve /d "FoxitReader Settings" /f' /> + <!-- Need to bump the value of Version (the thing specified by /d) on the next line when doing an upgrade that does not change %reg_version% . Otherwise, the auto-updater will get re-enabled --> - <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%updater_version%" /v "Version" /d "2" /t REG_SZ /f' /> - <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%updater_version%" /v "StubPath" /d "reg add \"HKCU\software\Foxit Software\Foxit Reader %updater_version%\plugins\Updater\" /v UpdateMode /t REG_SZ /d 0 /f" /f '/> + <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%reg_version%" /v "Version" /d "3" /t REG_SZ /f' /> + <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%reg_version%" /v "StubPath" /d "reg add \"HKCU\software\Foxit Software\Foxit Reader %reg_version%\plugins\Updater\" /v UpdateMode /t REG_SZ /d 0 /f" /f '/> <upgrade include="install" /> - <remove cmd='MsiExec.exe /qn /x{2B801EE2-5AFC-11E6-854E-000C29F04684}' /> - <remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%updater_version%" /f' /> + <remove cmd='MsiExec.exe /qn /x{11266F74-FD6D-11E6-8ADF-000C2992F709}' /> + <remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\chwpkg-foxitreader-noupdates-%reg_version%" /f' /> </package> </packages>