|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<packages>
|
|
|
|
<package id="notepad++"
|
|
|
|
name="Editeur Notepad++"
|
|
|
|
revision="30"
|
|
|
|
reboot="false"
|
|
|
|
priority="10">
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value="6.6.3" />
|
|
|
|
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Notepad++" />
|
|
|
|
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Notepad++" />
|
|
|
|
|
|
|
|
<check type="uninstall" condition="versionequalto" path="Notepad\+\+" value="%PKG_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='%COMSPEC% /c if exist "%INSTALL_PATH%\plugins" del /f /q "%INSTALL_PATH%\plugins\*.dll"' >
|
|
|
|
<exit code="1"/>
|
|
|
|
</install>
|
|
|
|
<install cmd="%SOFTWARE%\notepad++\npp.%PKG_VERSION%.Installer.exe /S" />
|
|
|
|
<!-- Pas d'auto update -->
|
|
|
|
<install cmd='%COMSPEC% /c rmdir /S /Q "%INSTALL_PATH%\updater"'/>
|
|
|
|
|
|
|
|
<upgrade include="install" />
|
|
|
|
<downgrade include="install" />
|
|
|
|
|
|
|
|
<remove cmd='%COMSPEC% /c if exist "%INSTALL_PATH%\plugins" del /f /q "%INSTALL_PATH%\plugins\*.dll"' >
|
|
|
|
<exit code="1"/>
|
|
|
|
</remove>
|
|
|
|
<remove cmd='%COMSPEC% /c "%INSTALL_PATH%\uninstall.exe" /S' />
|
|
|
|
<!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again
|
|
|
|
Unfortunatly, WINDOWS has no sleep commands -->
|
|
|
|
<remove cmd='%COMSPEC% /C ping -n 3 127.0.0.1 1>NUL 2>NUL' >
|
|
|
|
<exit code="any" />
|
|
|
|
</remove>
|
|
|
|
</package>
|
|
|
|
</packages>
|