Difference between revisions of "PDF X-Change Viewer"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(add categories, add new version with more variables)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is a silent installer for [http://www.docu-track.com/?product/pdfx_viewer PDF X-Change Viewer], an alternative to Adobe Reader. PDF X-Change Viewer is free for private and commercial use.
+
This is a silent installer for [http://www.docu-track.com/?product/pdfx_viewer PDF-XChange Viewer], an alternative to Adobe Reader. PDF-XChange Viewer is free for private and commercial use.
  
 
See the help file topic "Silent installation" for more information about various switches.
 
See the help file topic "Silent installation" for more information about various switches.
  
 +
== Install from EXE ==
 +
 +
<source lang="xml">
 +
<package
 +
id="pdfxchange_viewer"
 +
name="PDF-XChange Viewer"
 +
revision="%PKG_VERSION%"
 +
reboot="false"
 +
priority="0" >
 +
 +
<variable name="PKG_VERSION" value="2.5.322.10" />
 +
<variable name="PKG_SOURCE" value="%SOFTWARE%\PDFXChange" />
 +
<variable name="PKG_NAME" value="PDFXVwer%PKG_VERSION%.exe" />
 +
<variable name="PKG_INSTALL_SWITCH" value="/VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART /NODESKICON /TYPE=Full" />
 +
<variable name="PKG_REMOVE_SWITCH" value="/VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART" />
 +
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Tracker Software\PDF Viewer" />
 +
 +
<check type="uninstall" condition="versiongreaterorequal" path="PDF-Viewer" value="%PKG_VERSION%" />
 +
 +
<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
 +
 +
<upgrade include="install" />
 +
 +
<remove cmd='"%PKG_DESTINATION%\unins000.exe" %PKG_REMOVE_SWITCH%' />
 +
</package>
 +
</source>
 +
 +
Alternatively, you can use registry for check installation:
 +
<source lang="xml">
 +
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\UninstallString" value="C:\Program Files\Tracker Software\PDF Viewer\unins000.exe\" />
 +
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\DisplayVersion" value="2.5.189.0" />
 +
</source>
 +
 +
== Install from MSI ==
 
This is an amended version of the original package further below which uses both the 32bit and 64bit installers and exit codes appropriately to bypass the incompatabilities of each with the other OS.  The install checks are also accurate as well.  I have used this so I can use one package on 32bit XP and 64bit Windows 7.
 
This is an amended version of the original package further below which uses both the 32bit and 64bit installers and exit codes appropriately to bypass the incompatabilities of each with the other OS.  The install checks are also accurate as well.  I have used this so I can use one package on 32bit XP and 64bit Windows 7.
  
 
<source lang="xml">
 
<source lang="xml">
 
<package id="pdfxchange"
 
<package id="pdfxchange"
name="PDF Xchange Viewer"  
+
name="PDF-XChange Viewer"  
revision="2.5.191"  
+
revision="2.5.197"  
 
reboot="false"  
 
reboot="false"  
 
priority="20" >
 
priority="20" >
 
         <check type="uninstall" condition="exists" path="PDF-XChange Viewer" />
 
         <check type="uninstall" condition="exists" path="PDF-XChange Viewer" />
         <check type="logical" condition="or">
+
         <check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{3A6F4A31-8CFD-46B4-8385-E1F384DB121E}\DisplayVersion" value="2.5.197.0" />
          <check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{2AE7F8F4-BFD5-4811-9B4D-15CDC6B7F424}\DisplayVersion" value="2.5.191.0" />
+
         <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
          <check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{59BDB81E-9BB8-476E-A0A4-EE053A7FCBCB}\DisplayVersion" value="2.5.191.0" />
+
          architecture='x86'>
        </check>
+
         <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.191.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn ' >
+
 
           <exit code='1633'/>
 
           <exit code='1633'/>
 
           <exit code='1603'/>
 
           <exit code='1603'/>
 
         </install>
 
         </install>
         <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.191.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn ' >
+
         <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
 +
          architecture='x64' >
 
           <exit code='1633'/>
 
           <exit code='1633'/>
 
         </install>
 
         </install>
         <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.191.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn ' >
+
         <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
 +
          architecture='x86'>
 
           <exit code='1633'/>
 
           <exit code='1633'/>
 
           <exit code='1603'/>
 
           <exit code='1603'/>
 
         </upgrade>
 
         </upgrade>
         <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.191.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn ' >
+
         <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
 +
          architecture='x64' >
 
           <exit code='1633'/>
 
           <exit code='1633'/>
 
         </upgrade>
 
         </upgrade>
         <remove cmd='msiexec.exe /x{2AE7F8F4-BFD5-4811-9B4D-15CDC6B7F424} /qn ' >
+
         <remove cmd='msiexec.exe /x{3A6F4A31-8CFD-46B4-8385-E1F384DB121E} /qn ' >
          <exit code='1605'/>
+
        </remove>
+
        <remove cmd='msiexec.exe /x{59BDB81E-9BB8-476E-A0A4-EE053A7FCBCB} /qn ' >
+
 
           <exit code='1605'/>
 
           <exit code='1605'/>
 
         </remove>
 
         </remove>
 
</package>
 
</package>
 
</source>
 
</source>
 
 
<source lang="xml">
 
<package
 
    id="pdfxchange_viewer"
 
    name="PDF-XChange Viewer"
 
    revision="251890"
 
    reboot="false"
 
    priority="10">
 
 
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\UninstallString" value="C:\Program Files\Tracker Software\PDF Viewer\unins000.exe\" />
 
<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\DisplayVersion" value="2.5.189.0" />
 
 
        <install cmd='"%SOFTWARE%\PDFXVwer.exe" /VERYSILENT /NORESTART' />
 
 
        <upgrade cmd='"%SOFTWARE%\PDFXVwer.exe" /VERYSILENT /NORESTART' />
 
 
        <remove cmd='"%PROGRAMFILES%\Tracker Software\PDF-XChange Viewer\unins000.exe" /VERYSILENT' />
 
 
</package>
 
</source>
 
 
Note the installer installs [[Ask Toolbar]], you may want to remove it.
 
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Latest revision as of 14:16, 16 May 2020

This is a silent installer for PDF-XChange Viewer, an alternative to Adobe Reader. PDF-XChange Viewer is free for private and commercial use.

See the help file topic "Silent installation" for more information about various switches.

Install from EXE

<package 
	id="pdfxchange_viewer"
	name="PDF-XChange Viewer" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0" >

	<variable name="PKG_VERSION"		value="2.5.322.10" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\PDFXChange" />
	<variable name="PKG_NAME"		value="PDFXVwer%PKG_VERSION%.exe" />
	<variable name="PKG_INSTALL_SWITCH"	value="/VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART /NODESKICON /TYPE=Full" />
	<variable name="PKG_REMOVE_SWITCH"	value="/VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Tracker Software\PDF Viewer" />

	<check type="uninstall" condition="versiongreaterorequal" path="PDF-Viewer" value="%PKG_VERSION%" />

	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />

	<upgrade include="install" />

	<remove cmd='"%PKG_DESTINATION%\unins000.exe" %PKG_REMOVE_SWITCH%' />
</package>

Alternatively, you can use registry for check installation:

	<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\UninstallString" value="C:\Program Files\Tracker Software\PDF Viewer\unins000.exe\" />
	<check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A278382D-4F1B-4D47-9885-8523F7261E8D}_is1\DisplayVersion" value="2.5.189.0" />

Install from MSI

This is an amended version of the original package further below which uses both the 32bit and 64bit installers and exit codes appropriately to bypass the incompatabilities of each with the other OS. The install checks are also accurate as well. I have used this so I can use one package on 32bit XP and 64bit Windows 7.

<package id="pdfxchange"
	name="PDF-XChange Viewer" 
	revision="2.5.197" 
	reboot="false" 
	priority="20" >
        <check type="uninstall" condition="exists" path="PDF-XChange Viewer" />
        <check type="registry" condition="equals" path="HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{3A6F4A31-8CFD-46B4-8385-E1F384DB121E}\DisplayVersion" value="2.5.197.0" />
        <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
          architecture='x86'>
           <exit code='1633'/>
           <exit code='1603'/>
        </install>
        <install cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
           architecture='x64' >
           <exit code='1633'/>
        </install>
        <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x86.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
           architecture='x86'>
           <exit code='1633'/>
           <exit code='1603'/>
        </upgrade>
        <upgrade cmd='msiexec.exe /i %SOFTWARE%\pdfxchangeviewer\PXCViewer_x64.2.5.197.msi ADDLOCAL="F_Viewer,F_Help_Viewer,F_ShellExt,F_Langs_Viewer" VIEWER_IN_BROWSERS="0" SET_VIEWER_AS_DEFAULT="0" /qn '
           architecture='x64' >
           <exit code='1633'/>
        </upgrade>
        <remove cmd='msiexec.exe /x{3A6F4A31-8CFD-46B4-8385-E1F384DB121E} /qn ' >
           <exit code='1605'/>
        </remove>
</package>