Difference between revisions of "Notepad plus plus"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(added comment about plug-in's hanging installation and upgrade)
(added additional plug-ins)
Line 3: Line 3:
 
Notepad++ is a great little code editor and general plain text editor available at http://notepad-plus.sourceforge.net/
 
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.
+
It contains additional packages for several plug-ins as an example.
  
 
This package supports Windows 32-bit and 64-bit.
 
This package supports Windows 32-bit and 64-bit.
  
 
<source  lang="xml">
 
<source  lang="xml">
<packages>
+
<?xml version="1.0" encoding="UTF-8"?>
<package
+
id="NotepadPlusPlus"
+
name="Notepad++"
+
revision="5310"
+
reboot="false"
+
priority="10">
+
  
<check type='logical' condition='or'>
+
<packages
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\notepad++.exe" value="5.3.1.0" />
+
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\notepad++.exe" value="5.3.1.0" />
+
    xsi:noNamespaceSchemaLocation="..\xsd\packages.xsd" >
</check>
+
   
 +
    <package
 +
        id="NotepadPlusPlus"
 +
        name="Notepad++"
 +
        revision="5.3.1.0"
 +
        reboot="false"
 +
        priority="30">
  
<!-- remove plug-in's to prevent installer hanging -->
+
        <check type="uninstall" condition="exists" path="Notepad++" />
<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
+
        <check type='logical' condition='or'>
<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
+
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\notepad++.exe" value="5.3.1.0" />
<install cmd="%SOFTWARE%\NT-Install\Notepad++\npp.5.3.1.Installer.exe /S" />
+
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\notepad++.exe" value="5.3.1.0" />
 +
        </check>
  
<!-- remove plug-in's to prevent installer hanging -->
+
        <!-- remove plug-in's to prevent installer hanging -->
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
+
        <install 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"' />
+
        <install 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" />
+
        <install cmd="%SOFTWARE%\Notepad++\npp.5.3.1.Installer.exe /S" />
  
<!-- Windows 32-bit -->
+
        <!-- remove plug-in's to prevent installer hanging -->
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
+
        <upgrade 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' />
+
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\*.dll"' />
<!-- Windows 64-bit -->
+
        <upgrade cmd="%SOFTWARE%\Notepad++\npp.5.3.1.Installer.exe /S" />
<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'>
+
        <!-- Windows 32-bit -->
<check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
+
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" del /f /q "%ProgramFiles%\Notepad++\plugins\*.dll"' />
<check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" value="756224" />
+
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\uninstall.exe" "%ProgramFiles%\Notepad++\uninstall.exe" /S' />
</check>
+
        <!-- 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="1.5.2"
 +
        reboot="false"
 +
        priority="10">
 +
       
 +
        <depends package-id="NotepadPlusPlus" />
  
<install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
+
        <check type='logical' condition='or'>
<install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\NT-Install\Notepad++\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
+
            <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>
  
<upgrade 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%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\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"' />
+
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\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"' />
+
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\ComparePlugin.dll"' />
+
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
</package>
+
 
 +
        <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>
 +
   
 +
    <package
 +
        id="NotepadPlusPlusWinMgrPlugin"
 +
        name="Notepad++ Window Manager Plugin"
 +
        revision="1.2.1"
 +
        reboot="false"
 +
        priority="10">
 +
       
 +
        <depends package-id="NotepadPlusPlus" />
 +
 
 +
        <check type='logical' condition='or'>
 +
            <check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\plugins\WindowManager.dll" value="114688" />
 +
            <check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\plugins\WindowManager.dll" value="114688" />
 +
        </check>
 +
 
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\WindowManager\WindowManager.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\WindowManager\WindowManager.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\WindowManager\WindowManager.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\WindowManager\WindowManager.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\WindowManager.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\WindowManager.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\WindowManager.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\WindowManager.dll"' />
 +
    </package>
 +
   
 +
    <package
 +
        id="NotepadPlusPlusXMLToolsExtLibs"
 +
        name="Notepad++ XML Tools Plugin External Libraries"
 +
        revision="1"
 +
        reboot="false"
 +
        priority="20">
 +
       
 +
        <depends package-id="NotepadPlusPlus" />
 +
 
 +
        <check type='logical' condition='or'>
 +
            <check type="file" condition="sizeequals" path="%ProgramFiles%\Notepad++\libxml2.dll" value="975360" />
 +
            <check type="file" condition="sizeequals" path="%ProgramFiles(x86)%\Notepad++\libxml2.dll" value="975360" />
 +
        </check>
 +
 
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles%\Notepad++"' />
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles(x86)%\Notepad++"' />
 +
 
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles%\Notepad++"' />
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles(x86)%\Notepad++"' />
 +
 
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\iconv.dll" del /f /q "%ProgramFiles%\Notepad++\iconv.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\libxml2.dll" del /f /q "%ProgramFiles%\Notepad++\libxml2.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\libxslt.dll" del /f /q "%ProgramFiles%\Notepad++\libxslt.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\zlib1.dll" del /f /q "%ProgramFiles%\Notepad++\zlib1.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\iconv.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\iconv.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\libxml2.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\libxml2.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\libxslt.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\libxslt.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\zlib1.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\zlib1.dll"' />
 +
    </package>
 +
   
 +
    <package
 +
        id="NotepadPlusPlusXMLToolsPlugin"
 +
        name="Notepad++ XML Tools Plugin"
 +
        revision="1.0.0.2"
 +
        reboot="false"
 +
        priority="10">
 +
       
 +
        <depends package-id="NotepadPlusPlusXMLToolsExtLibs" />
 +
        <depends package-id="NotepadPlusPlus" />
 +
 
 +
        <check type='logical' condition='or'>
 +
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\plugins\XMLTools.dll" value="1.0.0.1" />
 +
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\plugins\XMLTools.dll" value="1.0.0.1" />
 +
        </check>
 +
 
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\XMLTools.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\XMLTools.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\XMLTools.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\XMLTools.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\XMLTools.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\XMLTools.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\XMLTools.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\XMLTools.dll"' />
 +
    </package>
 +
   
 +
    <package
 +
        id="NotepadPlusPlusDocMonPlugin"
 +
        name="Notepad++ Document Monitor Plugin"
 +
        revision="2.2.0.0"
 +
        reboot="false"
 +
        priority="10">
 +
       
 +
        <depends package-id="NotepadPlusPlus" />
 +
 
 +
        <check type='logical' condition='or'>
 +
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\plugins\docMonitor.unicode.dll" value="2.2.0.0" />
 +
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\plugins\docMonitor.unicode.dll" value="2.2.0.0" />
 +
        </check>
 +
 
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles%\Notepad++\plugins"' />
 +
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />
 +
 
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\docMonitor.unicode.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\docMonitor.unicode.dll"' />
 +
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\docMonitor.unicode.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\docMonitor.unicode.dll"' />
 +
    </package>
 
</packages>
 
</packages>
 
</source>
 
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 12:33, 19 June 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/

It contains additional packages for several plug-ins as an example.

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

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

<packages
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="..\xsd\packages.xsd" >
    
    <package
        id="NotepadPlusPlus"
        name="Notepad++"
        revision="5.3.1.0"
        reboot="false"
        priority="30">

        <check type="uninstall" condition="exists" path="Notepad++" />
         <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>

        <!-- remove plug-in's to prevent installer hanging -->
        <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%\Notepad++\npp.5.3.1.Installer.exe /S" />

        <!-- remove plug-in's to prevent installer hanging -->
        <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%\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="1.5.2"
        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%\Notepad++\Compare\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\ComparePlugin.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />

        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\ComparePlugin.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\Compare\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>
    
    <package
        id="NotepadPlusPlusWinMgrPlugin"
        name="Notepad++ Window Manager Plugin"
        revision="1.2.1"
        reboot="false"
        priority="10">
        
        <depends package-id="NotepadPlusPlus" />

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

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

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

        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\WindowManager.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\WindowManager.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\WindowManager.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\WindowManager.dll"' />
    </package>
    
    <package
        id="NotepadPlusPlusXMLToolsExtLibs"
        name="Notepad++ XML Tools Plugin External Libraries"
        revision="1"
        reboot="false"
        priority="20">
        
        <depends package-id="NotepadPlusPlus" />

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

        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles%\Notepad++"' />
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles(x86)%\Notepad++"' />

        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles%\Notepad++"' />
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\XMLTools\ext_libs\*.dll" "%ProgramFiles(x86)%\Notepad++"' />

        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\iconv.dll" del /f /q "%ProgramFiles%\Notepad++\iconv.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\libxml2.dll" del /f /q "%ProgramFiles%\Notepad++\libxml2.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\libxslt.dll" del /f /q "%ProgramFiles%\Notepad++\libxslt.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\zlib1.dll" del /f /q "%ProgramFiles%\Notepad++\zlib1.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\iconv.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\iconv.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\libxml2.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\libxml2.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\libxslt.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\libxslt.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\zlib1.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\zlib1.dll"' />
    </package>
    
    <package
        id="NotepadPlusPlusXMLToolsPlugin"
        name="Notepad++ XML Tools Plugin"
        revision="1.0.0.2"
        reboot="false"
        priority="10">
        
        <depends package-id="NotepadPlusPlusXMLToolsExtLibs" />
        <depends package-id="NotepadPlusPlus" />

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

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

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

        <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins\XMLTools.dll" del /f /q "%ProgramFiles%\Notepad++\plugins\XMLTools.dll"' />
        <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins\XMLTools.dll" del /f /q "%ProgramFiles(x86)%\Notepad++\plugins\XMLTools.dll"' />
    </package>
    
    <package
        id="NotepadPlusPlusDocMonPlugin"
        name="Notepad++ Document Monitor Plugin"
        revision="2.2.0.0"
        reboot="false"
        priority="10">
        
        <depends package-id="NotepadPlusPlus" />

         <check type='logical' condition='or'>
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad++\plugins\docMonitor.unicode.dll" value="2.2.0.0" />
            <check type="file" condition="versiongreaterorequal" path="%ProgramFiles(x86)%\Notepad++\plugins\docMonitor.unicode.dll" value="2.2.0.0" />
        </check>

        <install cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <install cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />

        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles%\Notepad++\plugins"' />
        <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\Notepad++\plugins" copy /b /v "%SOFTWARE%\Notepad++\DocMonitor\docMonitor.unicode.dll" "%ProgramFiles(x86)%\Notepad++\plugins"' />

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