PSPad

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

PSPad is a handy text editor. It is comparable to the commercial UltraEdit but is available free of charge from http://www.pspad.com.

WPKG Package[edit]

<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='PSPad'
  name='PSPad editor'
  revision='452'
  priority='50'
  reboot='false' >
 
  <!-- PSPad text editor -->

  <check type='uninstall' condition='exists' path='PSPad editor' />

  <install cmd='"%SOFTWARE%\PSPad\pspad452inst_en.exe" /VERYSILENT /NOREBOOT' />

  <upgrade cmd='"%SOFTWARE%\PSPad\pspad452inst_en.exe" /VERYSILENT /NOREBOOT' />

  <remove cmd='"%ProgramFiles%\PSPad\Uninst\unins000.exe" /SILENT' />
</package>

</packages>

Leave out unwanted toolbars[edit]

Version 4.5.6 comes with some extras such as the "Babylon Toolbar" or the "PSPad Toolbar". Replace the above with the following in order to not install them:

    <install cmd='"%comspec%" /c start /w "%SOFTWARE%\PSPad\pspad456inst_en.exe" /VERYSILENT /NORESTART /COMPONENTS="!babylon-toobar,!pspad-toolbar" /LOADINF="%SOFTWARE%\PSPad\setup.inf"' timeout="130">
    <exit code="0"/>
    </install>

    <upgrade cmd='"%comspec%" /c start /w "%SOFTWARE%\PSPad\pspad456inst_en.exe" /VERYSILENT /NORESTART /COMPONENTS="!babylon-toobar,!pspad-toolbar" /LOADINF="%SOFTWARE%\PSPad\setup.inf"' timeout="130">
    <exit code="0"/>
    </upgrade>

setup.inf[edit]

This file should be located in %SOFTWARE%\PSPad.

32-bit system version[edit]

[Setup]
Lang=default
Dir=C:\Program Files\PSPad editor
Group=PSPad editor
NoIcons=0
SetupType=custom
Components=main,context,syntax,convert,templates,script,openssl,lang,lang\europe,lang\europe\deutsch
Tasks=

64-bit system version[edit]

[Setup]
Lang=default
Dir=C:\Program Files (x86)\PSPad editor
Group=PSPad editor
NoIcons=0
SetupType=custom
Components=main,context,syntax,convert,templates,script,openssl,lang,lang\europe,lang\europe\deutsch
Tasks=

All in one[edit]

<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package 
      id="pspad" 
      name="PSPad editor" 
      revision="%version%-0" 
      priority="0"
      reboot="false">
        <variable name="VERSION" value="457" />
        <variable name="PKG_DESTINATION" value="%PROGRAMFILES%\PSPad editor" architecture="x86" />              
        <variable name="PKG_DESTINATION" value="%PROGRAMFILES(x86)%\PSPad editor" architecture="x64" />
        
        <check type="uninstall" condition="exists" path="PSPad editor" />

        <install cmd='%comspec% /c start /w %SOFTWARE%\PSPad\pspad%VERSION%inst_cz.exe /VERYSILENT /NORESTART /TASKS="multiuser,icons,contextmenu,txt" /COMPONENTS="!babylon-toolbar,!pspad-toolbar,main,context,syntax,convert,templates,script,openssl,lang,lang\europe,lang\europe\czech" /DIR="%PKG_DESTINATION%"' timeout="130" />

        <upgrade include="install" />
        <remove cmd='"%PKG_DESTINATION%\Uninst\unins000.exe" /SILENT' />
        
    </package>
</packages>