diff --git a/notepad++.xml b/notepad++.xml new file mode 100755 index 0000000000000000000000000000000000000000..a3f6a46150f07d1756fa0b0374e91941f09c0208 --- /dev/null +++ b/notepad++.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<packages> +<package id="notepad++" name="Notepad++" revision="%version%.1" reboot="false"> + + <variable name="version" value="7.8.5" /> + + <!-- 64bit version exists as of 7.1, but most of the plugins aren't available. So stick with 32bit until they sort that --> + <check type="uninstall" condition="versiongreaterorequal" path="Notepad++ (32-bit x86)" 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='cmd /c del /f /q "%ProgramFileswpkg%\Notepad++\plugins\*.dll"'><exit code="1"/></install> + <install cmd="%SOFTWARE%\notepad++\npp.%version%.Installer.exe /S" /> + + <!-- remove plug-ins to prevent installer hanging --> + <upgrade cmd='cmd /c del /f /q "%ProgramFileswpkg%\Notepad++\plugins\*.dll"' ><exit code="1"/></upgrade> + <!-- kill any running notepad++.exe: otherwise, the upgrade appears to succeed but + we're actually left with the old binary --> + <upgrade cmd='taskkill /F /IM notepad++.exe /FI "STATUS eq RUNNING"' /> + <upgrade cmd="%SOFTWARE%\Notepad++\npp.%version%.Installer.exe /S" /> + + <remove cmd='cmd /c del /f /q "%ProgramFileswpkg%\Notepad++\plugins\*.dll"' ><exit code="any"/></remove> + <remove cmd='%software%\wpkg\tools\waitforprocess.cmd uninstall.exe' /> + <remove cmd='"%ProgramFileswpkg%\Notepad++\uninstall.exe" /S' /> + <remove cmd='%software%\wpkg\tools\waitforprocess.cmd uninstall.exe' /> +</package> +</packages>