Yajhfc

A package for XP and w7 to install the Java-Hylafax-Client

The Batch Printer and Mail plugin and Ghostscript are installed as well.

 
<?xml version="1.0" encoding="UTF-8"?> 
<packages:packages
        xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd" >
     <package
      id="yajhfc" 
      name="Java Hylafax Client" 
      revision="%PKG_VERSION%"
      reboot="false"
      priority="10">
 
      <variable name="PKG_VERSION"      value="0.5.4" />
      <variable name="PKG_EXE_VERSION"  value="0.5.4.999" />
      <variable name="PKG_EXE_NAME"     value="yajhfc-0_5_4-setup.exe" />
      <variable name="PLUGIN_PKG_EXE_NAME"     value="yajhfc-0_5_4-plugin-mail-setup.exe" />
      <variable name="PKG_DESTINATION"  value="%ProgramFiles%\YajHFC"   architecture="x86"/>
      <variable name="PKG_DESTINATION"  value="%ProgramFiles%\YajHFC"   architecture="x64"/>
      <variable name="GS_EXE_NAME"  value="gs910w32.exe"   architecture="x86"/>
      <variable name="GS_EXE_NAME"  value="gs910w64.exe"   architecture="x64"/>
 <!--Only the installation of the main program executable is checked, could be improved -->
      <check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%\yajhfc.exe" value="%PKG_EXE_VERSION%" />
      <commands>           
      <command type="install" timeout="300" cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe" /VERYSILENT' /> 
      <command type="install" timeout="300" cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%\unins001.exe" "%PKG_DESTINATION%\unins001.exe" /VERYSILENT' />
      <command type="install" timeout="400" cmd='%SOFTWARE%\fax\jhfc\%GS_EXE_NAME% /S' />
      <command type="install" timeout="400" cmd='%SOFTWARE%\fax\jhfc\%PKG_EXE_NAME% /SILENT /NORESTART /SP-' />
      <command type="install" timeout="400" cmd='%SOFTWARE%\fax\jhfc\%PLUGIN_PKG_EXE_NAME% /SILENT /NORESTART /SP-' />
<!--desktop-links and autostart-entrys are deleted-->
      <command type="install" cmd='%comspec% /c if exist "%AllUsersProfile%\Desktop\YajHFC fax client.lnk" del /s /q "%AllUsersProfile%\Desktop\YajHFC fax client.lnk"'/>
      <command type="install" cmd='%comspec% /c if exist "%AllUsersProfile%\Startmenü\YajHFC fax client.lnk" del /s /q "%AllUsersProfile%\Startmenü\YajHFC fax client.lnk"'/>
      <command type="install" cmd='%comspec% /c if exist "%Public%\Desktop\YajHFC fax client.lnk" del /s /q "%Public%\Desktop\YajHFC fax client.lnk"'/>
      <command type="install" cmd='%comspec% /c if exist "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup\YajHFC fax client.lnk" del /s /q "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup\YajHFC fax client.lnk"'/>
        		
        <command type="upgrade" include="install" />
	<command type="downgrade" include="install" />
<!--remove commands not yet checked--> 
        <command type="remove" timeout="300" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\YajHFC\unins000.exe" "%PROGRAMFILES%\YajHFC\unins000.exe" /VERYSILENT' />   
        <command type="remove" timeout="300" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\YajHFC\unins000.exe" "%PROGRAMFILES(x86)%\YajHFC\unins000.exe" /VERYSILENT' /> 
        <command type="remove" timeout="300" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\YajHFC\unins001.exe" "%PROGRAMFILES%\YajHFC\unins001.exe" /VERYSILENT' />   
        <command type="remove" timeout="300" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\YajHFC\unins001.exe" "%PROGRAMFILES(x86)%\YajHFC\unins001.exe" /VERYSILENT' />
      </commands>   
    </package>
</packages:packages>