Difference between revisions of "JabRef"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (minor change to accomodate to the original name)
Line 2: Line 2:
  
 
Dowloads are available from [http://sourceforge.net/projects/jabref/files/jabref/ Sourceforge].
 
Dowloads are available from [http://sourceforge.net/projects/jabref/files/jabref/ Sourceforge].
 +
 +
== JabRef 2.9 or higher ==
 +
 +
Silent uninstall doesn't operate silently any longer since v2.9 or higher. See [http://sourceforge.net/p/jabref/bugs/637/ bug #637] for instance So uninstall needs to be done manually.
 +
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
 +
<packages>
 +
    <package id="jabref" name="JabRef" revision="%PKG_VERSION%" reboot="false" priority="10">
 +
        <variable name="PKG_VERSION" value="2.9" />
 +
        <check type="uninstall" condition="versiongreaterorequal" path="JabRef .+" value="%PKG_VERSION%" />
 +
 +
        <install cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />
 +
        <upgrade cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />
 +
 +
        <remove architecture="x86" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\jabref" rd /S /Q "%PROGRAMFILES%\jabref"'/>
 +
<remove architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(X86)%\jabref" rd /S /Q "%PROGRAMFILES(X86)%\jabref"' />
 +
 +
        <!-- Remove uninstall entry in system panel -->
 +
<remove architecture="x64" cmd='%COMSPEC% /C reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\JabRef %version%" /f' >
 +
  <exit code="any" />
 +
        </remove>
 +
<remove architecture="x86" cmd='%COMSPEC% /C reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef %version%" /f' >
 +
  <exit code="any" />
 +
        </remove>
 +
       
 +
        <!-- Remove icons -->
 +
<!-- Windows XP -->
 +
<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Desktop\JabRef*.lnk"' >
 +
    <exit code="any" />
 +
        </remove>
 +
<!-- Windows Vista or higher -->
 +
<remove os="(6\.[1-2]|6\.\d)\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%PUBLIC%\Desktop\JabRef*.lnk"' >
 +
  <exit code="any" />
 +
        </remove>
 +
 +
        <!-- Remove start menu entries -->
 +
<!-- Windows XP german -->
 +
<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Startmenü\Programme\JabRef*.lnk"' >
 +
  <exit code="any" />
 +
        </remove>
 +
<!-- Windows XP englisch -->
 +
<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Start menu\Programme\JabRef*.lnk"' >
 +
  <exit code="any" />
 +
        </remove>
 +
<!-- Windows Vista or higher -->
 +
<remove os="(6\.[1-2]|6\.\d)\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\JabRef*.lnk"' >
 +
  <exit code="any" />
 +
        </remove>
 +
 +
    </package>
 +
</packages>
 +
</source>
  
 
== JabRef 2.6 ==
 
== JabRef 2.6 ==

Revision as of 11:30, 30 November 2015

JabRef is an Open Source bibliography reference manager. See http://jabref.sourceforge.net/

Dowloads are available from Sourceforge.

JabRef 2.9 or higher

Silent uninstall doesn't operate silently any longer since v2.9 or higher. See bug #637 for instance So uninstall needs to be done manually.

<?xml version="1.0" encoding="UTF-8"?>

<packages>
    <package id="jabref" name="JabRef" revision="%PKG_VERSION%" reboot="false" priority="10">
        <variable name="PKG_VERSION" value="2.9" />
        <check type="uninstall" condition="versiongreaterorequal" path="JabRef .+" value="%PKG_VERSION%" />

        <install cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />
        <upgrade cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />

        <remove architecture="x86" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\jabref" rd /S /Q "%PROGRAMFILES%\jabref"'/>
	<remove architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(X86)%\jabref" rd /S /Q "%PROGRAMFILES(X86)%\jabref"' />

        <!-- Remove uninstall entry in system panel -->
	<remove architecture="x64" cmd='%COMSPEC% /C reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\JabRef %version%" /f' > 
	  <exit code="any" />
        </remove>
	<remove architecture="x86" cmd='%COMSPEC% /C reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef %version%" /f' > 
	  <exit code="any" />
        </remove>
        
        <!-- Remove icons -->
	<!-- Windows XP -->
	<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Desktop\JabRef*.lnk"' > 
  	  <exit code="any" />
        </remove>
	<!-- Windows Vista or higher -->
	<remove os="(6\.[1-2]|6\.\d)\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%PUBLIC%\Desktop\JabRef*.lnk"' > 
	  <exit code="any" />
        </remove>
	
        <!-- Remove start menu entries -->
	<!-- Windows XP german -->
	<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Startmenü\Programme\JabRef*.lnk"' > 
	  <exit code="any" />
        </remove>
	<!-- Windows XP englisch -->
	<remove os="windows.+5\.\d{1}\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%ALLUSERSPROFILE%\Start menu\Programme\JabRef*.lnk"' > 
	  <exit code="any" />
        </remove>
	<!-- Windows Vista or higher -->
	<remove os="(6\.[1-2]|6\.\d)\.\d{4}" cmd='%COMSPEC% /C del /Q /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\JabRef*.lnk"' > 
	  <exit code="any" />
        </remove>

    </package>
</packages>

JabRef 2.6

<?xml version="1.0" encoding="UTF-8"?>

<packages>
    <package id="jabref" name="JabRef" revision="%PKG_VERSION%" reboot="false" priority="10">
        <variable name="PKG_VERSION" value="2.6" />
        <check type="uninstall" condition="versiongreaterorequal" path="JabRef .+" value="%PKG_VERSION%" />

        <install cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />
        <upgrade cmd='"%SOFTWARE%\jabref\JabRef-%PKG_VERSION%-setup.exe" /S' />
        <remove cmd='"%PROGRAMFILES%\JabRef\uninstall.exe" /S' />
    </package>
</packages>