Difference between revisions of "Dia"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(small tidyup)
m (bumped to 0.97.1, typo, thoughts)
Line 1: Line 1:
 
Dia is a (vector) diagram editor, similar to OpenOffice Draw.
 
Dia is a (vector) diagram editor, similar to OpenOffice Draw.
  
The Dia site is at [http://live.gnome.org/Dia http://live.gnome.org/Dia]. Dia for Wndows is available from [http://dia-installer.de/ http://dia-installer.de/].
+
The Dia site is at [http://live.gnome.org/Dia http://live.gnome.org/Dia]. Dia for Windows is available from [http://dia-installer.de/ http://dia-installer.de/].
  
 
==WPKG Package==
 
==WPKG Package==
Line 7: Line 7:
 
<source lang="xml">
 
<source lang="xml">
 
<package id="dia" name="Dia Diagram Editor" revision="1" reboot="false" priority="1">
 
<package id="dia" name="Dia Diagram Editor" revision="1" reboot="false" priority="1">
        <check type="file" condition="exists" path="%PROGRAMFILES%\dia\dia-0.96.1-8-uninstall.exe" />
+
  <check type="file" condition="exists" path="%PROGRAMFILES%\dia\dia-0.97.1-uninstall.exe" />
        <install cmd='%SOFTWARE%\graphics\dia-setup-0.96.1-8.exe /S' />
+
  <install cmd='%SOFTWARE%\graphics\dia-setup-0.97.1-1.exe /S' />
        <upgrade cmd='%SOFTWARE%\graphics\dia-setup-0.96.1-8.exe /S' />
+
  <upgrade cmd='%SOFTWARE%\graphics\dia-setup-0.97.1-1.exe /S' />
      <remove cmd='%PROGRAMFILES%\dia\dia-0.96.1-8-uninstall.exe /S' />
+
  <remove cmd='%PROGRAMFILES%\dia\dia-0.97.1-uninstall.exe /S' />
 +
  <remove cmd='CMD /C RMDIR /S /Q %PROGRAMFILES%\dia'>
 +
      <exit code="0" />
 +
      <exit code="2" />
 +
  </remove>
 
</package>
 
</package>
 
</source>
 
</source>
  
Uninstall removes all files, but leaves the directory structure intact.
+
Uninstall removes all files, but leaves the directory structure intact. so there is an RMDIR invoked at the end.
 +
 
 +
It might be a good idea to uninstall previous versions before upgrading to a newer version. Otherwise at least the old uninstall executable does not get removed.
  
 
==Installer Command-line Switches==
 
==Installer Command-line Switches==

Revision as of 13:28, 13 August 2010

Dia is a (vector) diagram editor, similar to OpenOffice Draw.

The Dia site is at http://live.gnome.org/Dia. Dia for Windows is available from http://dia-installer.de/.

WPKG Package

<package id="dia" name="Dia Diagram Editor" revision="1" reboot="false" priority="1">
   <check type="file" condition="exists" path="%PROGRAMFILES%\dia\dia-0.97.1-uninstall.exe" />
   <install cmd='%SOFTWARE%\graphics\dia-setup-0.97.1-1.exe /S' />
   <upgrade cmd='%SOFTWARE%\graphics\dia-setup-0.97.1-1.exe /S' />
   <remove cmd='%PROGRAMFILES%\dia\dia-0.97.1-uninstall.exe /S' />
   <remove cmd='CMD /C RMDIR /S /Q %PROGRAMFILES%\dia'>
      <exit code="0" />
      <exit code="2" />
   </remove>
</package>

Uninstall removes all files, but leaves the directory structure intact. so there is an RMDIR invoked at the end.

It might be a good idea to uninstall previous versions before upgrading to a newer version. Otherwise at least the old uninstall executable does not get removed.

Installer Command-line Switches

/S - silent install
/D=<directory> - install into a different directory