Difference between revisions of "Ghostscript"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(GPL Ghostscript)
(Ghostscript 8: Cleared out very old Ghostscript 8)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''AFPL Ghostscript'' and ''ESP Ghostscript'' have been discontinued.
+
Ghostscript is an interpreter for the PostScript language and for PDF, available from http://www.ghostscript.com. Ghostscript is a command-line-tool, if you need a graphical interface install [[GSView]]. Ghostscript can be a requirement of other software, for example Scribus.
  
Its features have been integrated into ''GPL Ghostscript''.
+
Ghostscript is available either with a GPL licence, or with a commercial licence. From the Ghostscript web site: "Which license is right for me? For example, for personal use, use without redistribution, and use with no technical support the GNU Public License (GPL) download is your choice. If you are unwilling/unable to abide by the terms of the GPL (for instance, if you wish to redistribute these software packages or derivations thereof commercially), or if you wish to pay for technical support, you will need to acquire a commercial license from Artifex."
  
Ghostscript is a command-line-tool, if you need a graphical interface install [[GSView]].
+
''AFPL Ghostscript'' and ''ESP Ghostscript'' have been discontinued, their features integrated into ''GPL Ghostscript''.
  
Links:
+
Each Ghostscript version is installed separately, when you uninstall one version it doesn't uninstall other versions.
* [http://pages.cs.wisc.edu/~ghost/ Homepage]
+
* [http://sourceforge.net/projects/ghostscript/ GPL Ghostscript on SourceForge]
+
* [http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/gs900w32.exe Setup]
+
* [http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/gs900w64.zip 64bit files]
+
  
== AFPL Ghostscript ==
+
=Ghostscript 9=
This is a silent installer and uninstaller for AFPL Ghostscript and the accompanying AFPL Ghostscript Fonts.  Note that the uninstall proces is not silent, the user is prompted to verify removing the software.  The installation files can be obtained by unzipping the .exe installer.
+
  
<source lang="xml">
+
An improvement over Ghostscript 8, Ghostscript 9 can be silently installed directly by using the downloaded installer, and can be uninstalled silently.
<package id="ghostscript" name="AFPL Ghostscript" revision="1" reboot="false" priority="0" >
+
 
<check type="uninstall" condition="exists" path="AFPL Ghostscript 8.54" />
+
== GPL Ghostscript WPKG Package (32-bit version)==
<check type="uninstall" condition="exists" path="AFPL Ghostscript Fonts" />
+
 
<install cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\ghostscript\gs %SOFTWARE%\ghostscript\gs\setupgs.exe "%ProgramFiles%\gs"' />
+
This package includes uninstallation of various previous versions of Ghostscript.
<remove cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\ghostscript\gs %SOFTWARE%\ghostscript\gs\uninstgs.exe "%ProgramFiles%\gs\gs8.54\uninstal.txt"' />
+
<remove cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\ghostscript\gs %SOFTWARE%\ghostscript\gs\uninstgs.exe "%ProgramFiles%\gs\fonts\uninstal.txt"' />
+
</package>
+
</source>
+
  
If gsview is installed, use the uninstaller from gsview with an additional "-q":
 
 
<source lang="xml">
 
<source lang="xml">
<remove cmd='%ProgramFiles%\ghostgum\gsview\uninstgs.exe "%ProgramFiles%\fonts\uninstal.txt" -q' />
+
<package
</source>
+
id="ghostscript"
 +
name="Ghostscript"
 +
revision="2"
 +
reboot="false"
 +
priority="20" >
  
 +
<check
 +
type="file"
 +
condition="exists"
 +
path="%PROGRAMFILES%\gs\gs9.04\bin\gswin32.exe"/>
  
== GPL Ghostscript ==
+
<install cmd='%SOFTWARE%\ghostscript\gs904w32.exe /S' />
This is the silent installer for GPL Ghostscript.
+
  
<source lang="xml">
+
<!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 -->
<package id="gplghostscript" name="GPL GhostScript 8.63" revision="863" reboot="false" priority="0">
+
<upgrade cmd='cmd /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' />
<check type="logical" condition="and">
+
 
  <check type="uninstall" condition="exists" path="GPL Ghostscript 8.63" />
+
<!-- Uninstall Ghostscript 8.54 -->
  <check type="uninstall" condition="exists" path="GPL Ghostscript Fonts" />
+
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' />
</check>
+
<install cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\gs8.63\ %SOFTWARE%\gs8.63\setupgs.exe "%ProgramFiles%\gs"' />
+
<!-- Uninstall Ghostscript 8.61 -->
<remove cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\gs8.63 %SOFTWARE%\gs8.63\uninstgs.exe "%ProgramFiles%\gs\gs8.63\uninstall.txt"' />
+
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' />
<remove cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\gs8.63 %SOFTWARE%\gs8.63\uninstgs.exe "%ProgramFiles%\gs\fonts\uninstall.txt"' />
+
 +
<!-- Uninstall Ghostscript 8.63 -->
 +
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' />
 +
 
 +
<!-- Remove redundant directory structure -->
 +
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' />
 +
 +
<upgrade cmd='%SOFTWARE%\ghostscript\gs904w32.exe /S' />
 +
 
 +
<remove cmd='%PROGRAMFILES%\gs\gs9.04\uninstgs.exe /S' />
 
</package>
 
</package>
 
</source>
 
</source>
  
The uninstall for GPL ghostscript is not silent. It prompts the user to confirm the uninstall.
+
== GPL Ghostscript WPKG Package (32-bit and 64-bit versions) ==
  
For version 9.02 the uninstallation command:
+
Installs :
"%ProgramFiles%\gs\gs9.02\uninstgs.exe" /S "_?%ProgramFiles%\gs\gs9.02" works silently
+
* win32 on 32-bit OS
 +
* win32 and win64 on 64-bit OS
  
== Example Autoit script for "silent" uninstall:==
+
<source lang="xml">
<source lang="autoit" >
+
<?xml version="1.0" encoding="UTF-8"?>
$Program1 = '\\path\to\gs861w32\uninstgs.exe "%ProgramFiles%\gs\gs8.61\uninstal.txt"'
+
<packages>
$Program2 = '\\path\to\gs861w32\uninstgs.exe "%ProgramFiles%\gs\fonts\uninstal.txt"'
+
    <package
 +
        id="ghostscript"
 +
        name="Ghostscript"
 +
        revision="%version%"
 +
        reboot="false"
 +
        priority="20" >
 +
 
 +
        <variable name="version" value="9.06" />
 +
        <variable name="shortversion" value="906" />
 +
 
 +
        <check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version%\bin\gswin32.exe"/>
 +
        <check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES(x86)%\gs\gs%version%\bin\gswin32.exe"/>
 +
        <check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version%\bin\gswin64.exe"/>
 +
 
 +
        <install cmd='%SOFTWARE%\ghostscript\gs%shortversion%w32.exe /S' />
 +
        <install architecture="x64" cmd='%SOFTWARE%\ghostscript\gs%shortversion%w64.exe /S' />
 +
 
 +
        <!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 -->
 +
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' />
 +
        <!-- Uninstall Ghostscript 8.54 -->
 +
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' />
 +
        <!-- Uninstall Ghostscript 8.61 -->
 +
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' />
 +
        <!-- Uninstall Ghostscript 8.63 -->
 +
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' />
 +
        <!-- Remove redundant directory structure -->
 +
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' />
 +
        <!-- Install -->
 +
        <upgrade include="install" />
 +
 
 +
        <!-- uninstall 32 on x86 host and 64 on x64 host -->
 +
        <remove cmd='%PROGRAMFILES%\gs\gs%version%\uninstgs.exe /S _?=%PROGRAMFILES%\gs\gs%version%' />
 +
        <!-- uninstall 32 on 64 -->
 +
        <remove architecture="x64" cmd='%PROGRAMFILES(x86)%\gs\gs%version%\uninstgs.exe /S _?=%PROGRAMFILES(x86)%\gs\gs%version%' />
 +
</package>
 +
</packages>
  
Run(@ComSpec & " /c " & $Program1, "", @SW_HIDE);
 
 
; The window is invisible during boot!
 
WinWait("GPL Ghostscript 8.61", "", "30")
 
ControlSend("GPL Ghostscript 8.61", "", "", "u"); We remove the software
 
WinWait("GPL Ghostscript 8.61", "Uninstall successful", "30")
 
ControlSend("GPL Ghostscript 8.61", "", "", "{SPACE}"); We remove the software
 
 
Run(@ComSpec & " /c " & $Program2, "", @SW_HIDE);
 
; The window is invisible during boot!
 
WinWait("GPL Ghostscript Fonts", "", "30")
 
ControlSend("GPL Ghostscript Fonts", "", "", "u"); We remove the software
 
WinWait("GPL Ghostscript Fonts", "Uninstall successful", "30")
 
ControlSend("GPL Ghostscript Fonts", "", "", "{SPACE}"); We remove the software
 
 
</source>
 
</source>
 +
  
 
[[category:Silent Installers|Ghostscript]]
 
[[category:Silent Installers|Ghostscript]]

Latest revision as of 10:53, 17 January 2014

Ghostscript is an interpreter for the PostScript language and for PDF, available from http://www.ghostscript.com. Ghostscript is a command-line-tool, if you need a graphical interface install GSView. Ghostscript can be a requirement of other software, for example Scribus.

Ghostscript is available either with a GPL licence, or with a commercial licence. From the Ghostscript web site: "Which license is right for me? For example, for personal use, use without redistribution, and use with no technical support the GNU Public License (GPL) download is your choice. If you are unwilling/unable to abide by the terms of the GPL (for instance, if you wish to redistribute these software packages or derivations thereof commercially), or if you wish to pay for technical support, you will need to acquire a commercial license from Artifex."

AFPL Ghostscript and ESP Ghostscript have been discontinued, their features integrated into GPL Ghostscript.

Each Ghostscript version is installed separately, when you uninstall one version it doesn't uninstall other versions.

Ghostscript 9

An improvement over Ghostscript 8, Ghostscript 9 can be silently installed directly by using the downloaded installer, and can be uninstalled silently.

GPL Ghostscript WPKG Package (32-bit version)

This package includes uninstallation of various previous versions of Ghostscript.

<package
	id="ghostscript"
	name="Ghostscript"
	revision="2"
	reboot="false"
	priority="20" >

	<check
		type="file"
		condition="exists"
		path="%PROGRAMFILES%\gs\gs9.04\bin\gswin32.exe"/>

	<install cmd='%SOFTWARE%\ghostscript\gs904w32.exe /S' />

	<!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 -->
	<upgrade cmd='cmd /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' />

	<!-- Uninstall Ghostscript 8.54 -->
	<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' />
		
	<!-- Uninstall Ghostscript 8.61 -->
	<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' />
		
	<!-- Uninstall Ghostscript 8.63 -->
	<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' />

	<!-- Remove redundant directory structure -->
	<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' />
		
	<upgrade cmd='%SOFTWARE%\ghostscript\gs904w32.exe /S' />

	<remove cmd='%PROGRAMFILES%\gs\gs9.04\uninstgs.exe /S' />
</package>

GPL Ghostscript WPKG Package (32-bit and 64-bit versions)

Installs :

  • win32 on 32-bit OS
  • win32 and win64 on 64-bit OS
<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package
        id="ghostscript"
        name="Ghostscript"
        revision="%version%"
        reboot="false"
        priority="20" >

        <variable name="version" value="9.06" />
        <variable name="shortversion" value="906" />

        <check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version%\bin\gswin32.exe"/>
        <check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES(x86)%\gs\gs%version%\bin\gswin32.exe"/>
        <check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version%\bin\gswin64.exe"/>

        <install cmd='%SOFTWARE%\ghostscript\gs%shortversion%w32.exe /S' />
        <install architecture="x64" cmd='%SOFTWARE%\ghostscript\gs%shortversion%w64.exe /S' />

        <!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 -->
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' />
        <!-- Uninstall Ghostscript 8.54 -->
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' />
        <!-- Uninstall Ghostscript 8.61 -->
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' />
        <!-- Uninstall Ghostscript 8.63 -->
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' />
        <!-- Remove redundant directory structure -->
        <upgrade cmd='%COMSPEC% /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' />
        <!-- Install -->
        <upgrade include="install" />

        <!-- uninstall 32 on x86 host and 64 on x64 host -->
        <remove cmd='%PROGRAMFILES%\gs\gs%version%\uninstgs.exe /S _?=%PROGRAMFILES%\gs\gs%version%' />
        <!-- uninstall 32 on 64 -->
        <remove architecture="x64" cmd='%PROGRAMFILES(x86)%\gs\gs%version%\uninstgs.exe /S _?=%PROGRAMFILES(x86)%\gs\gs%version%' />
	</package>
</packages>