Difference between revisions of "Notepad plus plus"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(remove plug-in's before install, upgrade and remove, to avoid hanging the installer)
Line 1: Line 1:
 
This is a silent installer for Notepad++.
 
This is a silent installer for Notepad++.
  
Notepad++ is a great little code editor and general plain text editor available at http://notepad-plus.sourceforge.net/uk/site.htm
+
Notepad++ is a great little code editor and general plain text editor available at http://notepad-plus.sourceforge.net/
  
Note: upgrade Notepad++ 5.0.x to 5.1.x with caution. 5.1.x introduced changes that various plugins are as yet incompatible with (as of 5.1.1). A future 5.1.x release will include fixed plugins. Se Notepad++ 5.1.0 changelog for details (http://sourceforge.net/project/shownotes.php?release_id=635820&group_id=95717). You may want to hold off upgrading 5.0.x to 5.1.x until this is sorted out.
+
There is an additional package for the compare plug-in, which should not be needed for release 5.2 and higher.
 
+
There is an additional package for the compare plugin, which should not be needed for releases 5.2 and greater.
+
  
 
This package supports Windows 32-bit and 64-bit.
 
This package supports Windows 32-bit and 64-bit.
Line 12: Line 10:
 
<packages>
 
<packages>
 
<package
 
<package
        id="NotepadPlusPlus"
+
id="NotepadPlusPlus"
        name="Notepad++"
+
name="Notepad++"
        revision="5310"
+
revision="5310"
        reboot="false"
+
reboot="false"
        priority="10">
+
priority="10">
  
<check type='logical' condition='or'>
+
<check type='logical' condition='or'>
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\notepad++.exe" value="5.3.1.0" />
+
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\notepad++.exe" value="5.3.1.0" />
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\notepad++.exe" value="5.3.1.0" />
+
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\notepad++.exe" value="5.3.1.0" />
</check>
+
</check>
  
        <install cmd="%SOFTWARE%\Notepad++\npp.5.3.1.Installer.exe /S" />
+
<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
 +
<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
 +
<install cmd="%SOFTWARE%\NT-Install\Notepad++\npp.5.3.1.Installer.exe /S" />
  
        <upgrade cmd="%SOFTWARE%\Notepad++\npp.5.3.1.Installer.exe /S" />
+
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
 +
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
 +
<upgrade cmd="%SOFTWARE%\NT-Install\Notepad++\npp.5.3.1.Installer.exe /S" />
  
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\uninstall.exe" "%ProgramFiles%\Notepad++\uninstall.exe" /S' />
+
<!-- Windows 32-bit -->
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\uninstall.exe" "%ProgramFiles(x86)%\Notepad++\uninstall.exe" /S' />
+
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
 +
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\uninstall.exe" "%ProgramFiles%\Notepad++\uninstall.exe" /S' />
 +
<!-- Windows 64-bit -->
 +
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
 +
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\uninstall.exe" "%ProgramFiles(x86)%\Notepad++\uninstall.exe" /S' />
 
</package>
 
</package>
 
 
 
<package
 
<package
        id="NotepadPlusPlusComparePlugin"
+
id="NotepadPlusPlusComparePlugin"
        name="Notepad++ Compare Plugin"
+
name="Notepad++ Compare Plugin"
        revision="152"
+
revision="152"
        reboot="false"
+
reboot="false"
        priority="10">
+
priority="10">
 
 
<depends package-id="NotepadPlusPlus" />
+
<depends package-id="NotepadPlusPlus" />
  
<check type='logical' condition='or'>
+
<check type='logical' condition='or'>
<check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
+
<check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
<check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
+
<check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
</check>
+
</check>
  
        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
+
<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
+
<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
  
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
+
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
+
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
  
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll"' />
+
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll"' />
+
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll"' />
 
</package>
 
</package>
 
</packages>
 
</packages>

Revision as of 16:15, 30 March 2009

This is a silent installer for Notepad++.

Notepad++ is a great little code editor and general plain text editor available at http://notepad-plus.sourceforge.net/

There is an additional package for the compare plug-in, which should not be needed for release 5.2 and higher.

This package supports Windows 32-bit and 64-bit.

<packages>
	<package
		id="NotepadPlusPlus"
		name="Notepad++"
		revision="5310"
		reboot="false"
		priority="10">

 		<check type='logical' condition='or'>
			<check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\notepad++.exe" value="5.3.1.0" />
			<check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\notepad++.exe" value="5.3.1.0" />
		</check>

		<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
		<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
		<install cmd="%SOFTWARE%\NT-Install\Notepad++\npp.5.3.1.Installer.exe /S" />

		<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
		<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
		<upgrade cmd="%SOFTWARE%\NT-Install\Notepad++\npp.5.3.1.Installer.exe /S" />

		<!-- Windows 32-bit -->
		<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
		<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\uninstall.exe" "%ProgramFiles%\Notepad++\uninstall.exe" /S' />
		<!-- Windows 64-bit -->
		<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
		<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\uninstall.exe" "%ProgramFiles(x86)%\Notepad++\uninstall.exe" /S' />
	</package>
	
	<package
		id="NotepadPlusPlusComparePlugin"
		name="Notepad++ Compare Plugin"
		revision="152"
		reboot="false"
		priority="10">
		
		<depends package-id="NotepadPlusPlus" />

 		<check type='logical' condition='or'>
			<check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
			<check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
		</check>

		<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
		<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />

		<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
		<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />

		<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll"' />
		<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll"' />
	</package>
</packages>