Difference between revisions of "SumatraPDF"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Sumatra GPL PDF viewer)
 
(Corrected config for Smatra PDF 1.0.1)
Line 2: Line 2:
  
 
Sumatra PDF home: http://blog.kowalczyk.info/software/sumatrapdf/
 
Sumatra PDF home: http://blog.kowalczyk.info/software/sumatrapdf/
 +
 +
== Version 1.0.1 ==
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
 +
<packages>
 +
<package
 +
id="sumatrapdf"
 +
name="Sumatra PDF Reader"
 +
revision="1"
 +
priority="0"
 +
reboot="false">
 +
 +
<check type="uninstall" condition="exists" path="SumatraPDF" />
 +
<install cmd='"%SOFTWARE%\sumatra\SumatraPDF-1.0.1-install.exe" /S' />
 +
<upgrade cmd='"%SOFTWARE%\sumatra\SumatraPDF-1.0.1-install.exe" /S' />
 +
<remove cmd='"%PROGRAMFILES%\SumatraPDF\Uninstall.exe" /S' />
 +
  </package>
 +
</packages>
 +
</source>
 +
 +
== Version 0.9.3 ==
  
 
<source lang="xml">
 
<source lang="xml">

Revision as of 22:51, 1 April 2010

Sumatra PDF is a lightweight Open Source PDF Viewer.

Sumatra PDF home: http://blog.kowalczyk.info/software/sumatrapdf/

Version 1.0.1

<?xml version="1.0" encoding="UTF-8"?>
 
<packages>
 <package
	 id="sumatrapdf"
	 name="Sumatra PDF Reader"
	 revision="1"
	 priority="0"
	 reboot="false">

	 <check type="uninstall" condition="exists" path="SumatraPDF" />
	 <install cmd='"%SOFTWARE%\sumatra\SumatraPDF-1.0.1-install.exe" /S' />
	 <upgrade cmd='"%SOFTWARE%\sumatra\SumatraPDF-1.0.1-install.exe" /S' />
	 <remove cmd='"%PROGRAMFILES%\SumatraPDF\Uninstall.exe" /S' />
  </package>
</packages>

Version 0.9.3

<?xml version="1.0" encoding="UTF-8"?>
 
<packages>
 <package
	 id="sumatrapdf"
	 name="Sumatra PDF Reader"
	 revision="1"
	 priority="0"
	 reboot="false">

	 <check type="uninstall" condition="exists" path="Sumatra PDF reader" />
	 <install cmd='"%SOFTWARE%\sumatra\SumatraPDF-0.9.3-install.exe" /S' />
	 <install cmd='"%SOFTWARE%\sumatra\sumatra_postinstall.bat"' />
	 <upgrade cmd='"%SOFTWARE%\sumatra\SumatraPDF-0.9.3-install.exe" /S' />
	 <upgrade cmd='"%SOFTWARE%\sumatra\sumatra_postinstall.bat"' />
	 <remove cmd='"%SOFTWARE%\sumatra\sumatra_prerm.bat"' />
	 <remove cmd='"%PROGRAMFILES%\SumatraPDF\Uninstall.exe" /S' />
  </package>
</packages>

The installer places shortcuts under the default user profile when installed via WPKG. The following script moves the shortcuts to the All Users profile.

  REM sumatra_postinstall.bat
  move "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\SumatraPDF" "%ALLUSERSPROFILE%\Start Menu\Programs\"

The following script moves the shortcuts back to their original location.

  REM sumatra_prerm.bat
  move "%ALLUSERSPROFILE%\Start Menu\Programs\SumatraPDF" "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\"