Difference between revisions of "PaintDotNet"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Updated and switched to use msi)
Line 1: Line 1:
This is a silent installer and uninstaller for PaintDotNet.
+
This is a silent installer and uninstaller for Paint.NET.
  
[http://www.eecs.wsu.edu/paint.net Paint.NET] is a spiffy image editor for Windows using C#.
+
[http://www.getpaint.net/ Paint.NET] is a spiffy image editor for Windows using C#.
 +
 
 +
The installer will only work while logged into a desktop as an administrator.  If you're using WPKG Client or running WPKG over ssh it will fail.  To get around this you need to generate an MSI.  To do this download the installer and run it with the [http://www.eecs.wsu.edu/paint.net/doc/2.6/Help/en/UnattendedInstallation.html options] you want making sure to add "/createMsi":
 +
 
 +
Paint.NET.3.31.exe /createMsi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1
 +
 
 +
This will create a folder called "PaintDotNetMsi" with two files in it: "PaintDotNet.x64.msi" and "PaintDotNet.x86.msi".  Copy the "PaintDotNet.x86.msi" to your server as "paint.net-3.31.msi".
  
 
<source lang="xml">
 
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<packages>
 
<package
 
<package
    id="paint.net"
+
id="paintdotnet"
    name="Paint.Net"
+
name="paintdotnet"
    revision="1"
+
revision="200805021"
    reboot="false"
+
reboot="false"
    priority="0">
+
priority="5">
    <check type="uninstall" condition="exists" path="Paint.NET v2.1b" />
+
 
 +
<check type="uninstall" condition="exists" path="Paint.NET v3.31" />
 +
 
 +
<install cmd='msiexec /qn /i %SOFTWARE%\paintdotnet\paint.net-3.31.msi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1' />
 +
<install cmd='cmd /c del /q /s "%AllUsersProfile%\Desktop\Paint.NET.lnk"' />
 +
 
 +
<upgrade cmd='msiexec /qn /i %SOFTWARE%\paintdotnet\paint.net-3.31.msi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1' />
 +
<upgrade cmd='cmd /c del /q /s "%AllUsersProfile%\Desktop\Paint.NET.lnk"' />
  
    <install cmd='msiexec /i "%SOFTWARE%\PaintDotNet\PaintDotNet_2_1b.msi" /q' />
+
<remove cmd='msiexec /qn /x {51AFB69C-1C54-4C77-A888-2860F8CD3E7D}' />
    <remove cmd="msiexec /q /x{9DA9E3D2-A7FD-4206-9604-11B01A0CDA5F}" />
+
    <upgrade cmd='msiexec /i "%SOFTWARE%\PaintDotNet\PaintDotNet_2_1b.msi" /q' />
+
 
</package>
 
</package>
 +
</packages>
 
</source>
 
</source>
  

Revision as of 20:56, 4 June 2008

This is a silent installer and uninstaller for Paint.NET.

Paint.NET is a spiffy image editor for Windows using C#.

The installer will only work while logged into a desktop as an administrator. If you're using WPKG Client or running WPKG over ssh it will fail. To get around this you need to generate an MSI. To do this download the installer and run it with the options you want making sure to add "/createMsi":

Paint.NET.3.31.exe /createMsi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1

This will create a folder called "PaintDotNetMsi" with two files in it: "PaintDotNet.x64.msi" and "PaintDotNet.x86.msi". Copy the "PaintDotNet.x86.msi" to your server as "paint.net-3.31.msi".

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
	id="paintdotnet"
	name="paintdotnet"
	revision="200805021"
	reboot="false"
	priority="5">

	<check type="uninstall" condition="exists" path="Paint.NET v3.31" />

	<install cmd='msiexec /qn /i %SOFTWARE%\paintdotnet\paint.net-3.31.msi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1' />
	<install cmd='cmd /c del /q /s "%AllUsersProfile%\Desktop\Paint.NET.lnk"' />

	<upgrade cmd='msiexec /qn /i %SOFTWARE%\paintdotnet\paint.net-3.31.msi CHECKFORUPDATES=0 CHECKFORBETAS=0 JPGPNGBMPEDITOR=1 TGAEDITOR=1 ALLUSERS=1' />
	<upgrade cmd='cmd /c del /q /s "%AllUsersProfile%\Desktop\Paint.NET.lnk"' />

	<remove cmd='msiexec /qn /x {51AFB69C-1C54-4C77-A888-2860F8CD3E7D}' />
</package>
</packages>


External links