PDF Split And Merge

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

PDF Split And Merge [1] is a free, open source and platform independent software to Split and merge pdf documents.

<package
	id="pdfsam"
	name="PDF Split And Merge Basic"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="1">

	<variable name="PKG_VERSION"        value="2.2.2" />
		
	<variable name="PKG_EXE_x86"        value="pdfsam-x86-v%PKG_VERSION%.msi" />
	<variable name="PKG_EXE_x64"	    value="pdfsam-x64-v%PKG_VERSION%.msi" />
		
	<variable name="PKG_SOURCE"         value="%SOFTWARE%\pdfsam" />
        
	<variable name="PKG_INSTALL_SWITCH" value='/qn /passive' />
	<variable name="PKG_REMOVE_SWITCH"  value='/qn /passive' />
		
	<check type="uninstall" condition="versionequalto" path="PDF Split And Merge Basic" value="%PKG_VERSION%" />
		
	<commands>		
		<command type="install" cmd='MsiExec.exe /i "%PKG_SOURCE%\%PKG_EXE_x86%" %PKG_INSTALL_SWITCH%' architecture="x86" />
		<command type="install" cmd='MsiExec.exe /i "%PKG_SOURCE%\%PKG_EXE_x64%" %PKG_INSTALL_SWITCH%' architecture="x64" />

		<command type="upgrade" include="install" />
			
		<command type="remove" cmd='MsiExec.exe /x "%PKG_SOURCE%\%PKG_EXE_x86%" %PKG_REMOVE_SWITCH%' architecture="x86" />
		<command type="remove" cmd='MsiExec.exe /x "%PKG_SOURCE%\%PKG_EXE_x64%" %PKG_REMOVE_SWITCH%' architecture="x64" />
	</commands>
</package>

New version of PDFsam is available.

<package	 
        id="pdfsam"
        name="PDF Split and Merge Basic"
        revision="%PKG_VERSION%"
        reboot="false"
        priority="1">

       <!-- <depends package-id="java8"/> -->
		
       <variable name="PKG_VERSION"    value="3.0.2.0" />
       <variable name="PKG_SOURCE"     value="%SOFTWARE%\pdfsam-v3.0.2.RELEASE.msi" />
       <check type="logical" condition="or">
         <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\PDFsam Basic\pdfsam.exe" value="%PKG_VERSION%" />    
         <check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\PDFsam Basic\pdfsam.exe" value="%PKG_VERSION%" />
       </check>
       <install cmd='msiexec.exe /i "%PKG_SOURCE%" /qn /passive CHECK_FOR_UPDATES=false SKIPTHANKSPAGE=Yes'/>
       <upgrade include="install"/>
       <remove  cmd='wmic product where name="PDFsam Basic" call uninstall' />
</package>