Changes

Notepad plus plus

839 bytes added, 11:42, 28 April 2014
WPKG Package for Notepad++
<source lang="xml">
<package!-- Notepad plus plus --> <package id="NotepadPlusPlusnpp" name="Notepad++" revision="%version%15" reboot="false" priority="305800">  <variable name="version" value="56.95.5" />  <check type="uninstall" condition="versionequalto" path="Notepad++" value="%version%" />  <!-- remove plug-ins to prevent installer hanging --> <!-- Exit code of "1" can occur if there are no .dll files in the plugins dir. This happens if a previous installation has been uninstalled, since the uninstaller fails to remove the plugins folder. --> <install cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES%\Notepad++\plugins" del /f /q "%ProgramFilesPROGRAMFILES%\Notepad++\plugins\*.dll"' architecture="x86"><exit code="1"/></install> <install cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\plugins" del /f /q "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\plugins\*.dll"' architecture="x64"><exit code="1"/></install> <install cmd="%SOFTWARE%\Notepad++npp\npp.%version%.Installer.exe /S" /> <install cmd='%COMSPEC% /c rmdir /S /Q "%PROGRAMFILES%\Notepad++\updater"' architecture="x86"/> <install cmd='%COMSPEC% /c rmdir /S /Q "%PROGRAMFILES(x86)%\Notepad++\updater"' architecture="x64"/> <!-- <install cmd='%COMSPEC% /c rmdir /s /q "%ALLUSERSPROFILE%\Startmenü\Programme\Notepad++"' /> --> <!-- remove plug-ins to prevent installer hanging --> <upgrade cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES%\Notepad++\plugins" del /f /q "%ProgramFilesPROGRAMFILES%\Notepad++\plugins\*.dll"' architecture="x86"><exit code="1"/></upgrade> <upgrade cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\plugins" del /f /q "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\plugins\*.dll"' architecture="x64"><exit code="1"/></upgrade> <upgrade cmd="%SOFTWARE%\Notepad++npp\npp.%version%.Installer.exe /S" /> <upgrade cmd='%COMSPEC% /c rmdir /S /Q "%PROGRAMFILES%\Notepad++\updater"' architecture="x86"/> <upgrade cmd='%COMSPEC% /c rmdir /S /Q "%PROGRAMFILES(x86)%\Notepad++\updater"' architecture="x64"/> <!-- Windows 32-bit <upgrade cmd='%COMSPEC% /c rmdir /s /q "%ALLUSERSPROFILE%\Startmenü\Programme\Notepad++"' /> --> <remove cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES%\Notepad++\plugins" del /f /q "%ProgramFilesPROGRAMFILES%\Notepad++\plugins\*.dll"' ><exit code="1"/></remove> <remove cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\uninstall.exeplugins" del /f /q "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\uninstallplugins\*.exedll" /S' ><exit code="1"/> <!-- Windows 64-bit --/remove> <remove cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFiles(x86)PROGRAMFILES%\Notepad++\pluginsuninstall.exe" del /f /q "%ProgramFiles(x86)PROGRAMFILES%\Notepad++\plugins\*uninstall.dllexe"/S' ><exit codearchitecture="1x86"/></remove> <remove cmd='%ComSpecCOMSPEC% /c if exist "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\uninstall.exe" "%ProgramFilesPROGRAMFILES(x86)%\Notepad++\uninstall.exe" /S' architecture="x64" /> <remove cmd='%COMSPEC% /C rmdir /s /q "%PROGRAMFILES%\Notepad++"' architecture="x86"/> <remove cmd='%COMSPEC% /C rmdir /s /q "%PROGRAMFILES(x86)%\Notepad++"' architecture="x64"/> </package>
</source>
22
edits