Difference between revisions of "Foxit Reader"
m (→Foxit Reader 3.0) |
m (removed redundant XML sections because this file won't be used as the sole item in a packages.xml file) |
||
Line 83: | Line 83: | ||
<source lang="xml"> | <source lang="xml"> | ||
− | |||
− | |||
<package | <package | ||
id="foxit-reader" | id="foxit-reader" | ||
Line 104: | Line 102: | ||
</package> | </package> | ||
− | |||
</source> | </source> | ||
Revision as of 17:34, 13 July 2009
Silent install for Foxit Reader, a "free PDF document viewer and printer, with incredible small size (only 2.55 M download size), breezing-fast launch speed and rich feature set".
You will need to download the msi version of Foxit Reader in order for this to work. I would also recommend setting a different user in the permissions.
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="foxit-reader"
name="Foxit Reader"
revision="2.3"
reboot="false"
priority="0">
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Foxit Software\Foxit Reader\Foxit Reader.exe" value="2.3.2008.2923"/>
<install cmd='msiexec /i %SOFTWARE%\foxit\FoxitReader23.msi /passive /norestart'>
<exit code="0" />
</install>
<install cmd='cmd /c mkdir "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<install cmd='cmd /c copy "%UserProfile%\Start Menu\Programs\Foxit Reader\Foxit Reader.lnk" "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<install cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\Foxit Reader"' />
<install cmd='cmd /c cacls "%ProgramFiles%\\Foxit Software" /T /E /G "Everyone":F ' />
<exit code="1332" />
<install cmd='cmd /c cacls "%AllUsersProfile%\\Start Menu\\Programs\\Foxit Reader" /T /E /G "Everyone":F ' />
<exit code="1332" />
<remove cmd='msiexec /x {376DA9DC-71B3-4AB7-A80C-8ED02A736172} /passive /norestart' />
<remove cmd='cmd /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<upgrade cmd='cmd /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<upgrade cmd='msiexec /i %SOFTWARE%\foxit\FoxitReader23.msi /passive /norestart'>
<exit code="0" />
</upgrade>
<upgrade cmd='cmd /c mkdir "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<upgrade cmd='cmd /c copy "%UserProfile%\Start Menu\Programs\Foxit Reader\Foxit Reader.lnk" "%AllUsersProfile%\Start Menu\Programs\Foxit Reader"' />
<upgrade cmd='cmd /c rmdir /q /s "%UserProfile%\Start Menu\Programs\Foxit Reader"' />
<upgrade cmd='cmd /c cacls "%ProgramFiles%\\Foxit Software" /T /E /G "Everyone":F ' />
<exit code="1332" />
<upgrade cmd='cmd /c cacls "%AllUsersProfile%\\Start Menu\\Programs\\Foxit Reader" /T /E /G "Everyone":F ' />
<exit code="1332" />
</package>
</packages>
Contents
Alternative install
This above method will work, but you will run into problems when trying this with a German version of Windows, as the "Start menu" is called "Startmenü". You may want to correct the path in that case.
Of course, this will also work with any other version of Windows. This install will set Foxit Reader as default PDF reader.
Foxit Reader 3.0
<package
id="foxit-reader"
name="Foxit Reader"
revision="1"
reboot="false"
priority="0">
<check
type="uninstall"
condition="exists"
path="Foxit Reader" />
<install cmd='msiexec /i "%SOFTWARE%\foxit-reader\FoxitReader30_enu.msi" /QN /NORESTART' />
<remove cmd='msiexec /x {CA8A9780-280D-11CF-A24D-444553540000} /passive /norestart' />
<upgrade cmd='msiexec /i "%SOFTWARE%\foxit-reader\FoxitReader30_enu" /QN /NORESTART' />
</package>
Foxit Reader automatically makes itself the default PDF reader, hence the -register command-line switch isn't used here.
Foxit Reader 2.3
<package
id="foxit-reader"
name="Foxit Reader"
revision="2.3"
reboot="false"
priority="0">
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Foxit Software\Foxit Reader\Foxit Reader.exe" value="2.3.2008.3201" />
<install cmd='msiexec /i "%SOFTWARE%\Office\Foxit\FoxitReader23.msi" /QN /NORESTART ALLUSERS=1' />
<install cmd='"%PROGRAMFILES%\Foxit Software\Foxit Reader\Foxit Reader.exe" -register' />
<remove cmd='msiexec /x {376DA9DC-71B3-4AB7-A80C-8ED02A736172} /passive /norestart' />
<upgrade cmd='msiexec /i "%SOFTWARE%\Office\Foxit\FoxitReader23.msi" /QN /NORESTART ALLUSERS=1' />
<upgrade cmd='"%PROGRAMFILES%\Foxit Software\Foxit Reader\Foxit Reader.exe" -register' />
</package>
Command-line Switches
-register - make Foxit Reader the default PDF reader