20
edits
Changes
→Scribus 64bit
[http://www.scribus.net Scribus] is a free open source Desktop Publishing (DTP) application.
== Scribus 64bit with special batch file for uninstall==
<source lang="xml">
priority="5">
<variable name="PKG_VERSION" value="1.6.14" />
<variable name="PKG_NAME" value="scribus" />
<variable name="PKG_INSTALL_SWITCH" value="/S"/>
<variable name="PKG_REMOVE_SWITCH" value="/S _?=%PKG_DESTINATION%"/>
<!-- Is our current version installed? --> <check type="uninstall" condition="versiongreaterorequalexists" path="Scribus %PKG_VERSION% (64bit)" value="%PKG_VERSION%" />
<!-- If we're going to do an install we are going to check for previous versions and uninstall them if they are installed --> <install cmd='%COMSPEC% /C if exist "%ProgramFiles%\Scribus 1.6.1\uninst.exe" %PKG_VERSIONPKG_REMOVE_SWITCH%' > <condition> <check type="uninstall" condition="exists" path="Scribus 1.6.1 (64bit)" /> </condition> </install> <install cmd='%COMSPEC% /C "%ProgramFiles%\Scribus 1.6.2\uninst.exe" %PKG_REMOVE_SWITCH%' > <condition> <check type="uninstall" condition="exists" path="Scribus 1.6.2 (64bit)" /> </condition> </install> <install cmd='%COMSPEC% /C "%ProgramFiles%\Scribus 1.6.3\uninst.exe" %PKG_REMOVE_SWITCH%' > <condition> <check type="uninstall" condition="exists" path="Scribus 1.6.3 (64bit)" /> </condition> </install><!-- Now we install our new version -->
<install cmd='%COMSPEC% /C "%SOFTWARE%\%PKG_NAME%\%PKG_NAME%-%PKG_VERSION%-windows-x64.exe" %PKG_INSTALL_SWITCH%' />
<upgrade include="install" />
<!-- If we're uninstalling our current version this is the line we use. A batch file is being used to delay the time between uninstall and the wpkg check to verfy the successful uninstall. Some NSIS uninstallers don't seem to finish their processes quick enough and wpkg still picks up the program as installed --> <remove cmd='%COMSPEC% /C %SOFTWARE%\batch_files\nsis-uninstall-delay.bat "%ProgramFiles%\Scribus %PKG_VERSION%\uninst.exe" %PKG_REMOVE_SWITCH%/S' />
</package>