diff --git a/packages/autoit.xml b/packages/autoit.xml new file mode 100755 index 0000000000000000000000000000000000000000..733d110932a35884bf789c701773cafda6b01d92 --- /dev/null +++ b/packages/autoit.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<packages:packages xmlns:packages="http://www.wpkg.org/packages"> + +<!-- To set per user settings like the colours, edit c:\users\{username}\SciTEUser.properties. To use the default colours, delete existing SciTEUser.properties and start Scite +--> + + <package id="autoit" name="Autoit and Scite Editor" revision="%version%.1" reboot="false" priority="5"> + <variable name="version" value="3.3.14.5"/> + <!-- <variable name="scite_version" value="14.801.2025.0"/> DON'T USE THIS VERSION, IT DOESN'T LET ROOT SAVE ANY SCITE CONFIG CHANGES, 4_5_2013 DOES! --> + <variable name="scite_version" value="4.5.2013"/> + + <check type="uninstall" condition="exists" path="AutoIt v%version%" /> + <check type="uninstall" condition="exists" path="SciTE4AutoIt3 %scite_version%" /> + + <install cmd='cmd /c if exist "%PROGRAMFILES(x86)%\autoit3\" rd /s /q "%PROGRAMFILES(x86)%\autoit3\"'> + <exit code='1' /> + </install> + <install cmd='%WPKGSOFTWARE%\autoit\%VERSION%\autoit-v3-setup.exe /S' /> + <install cmd='cmd /c copy /y "%WPKGSOFTWARE%\autoit\include\*.au3" "%PROGRAMFILES(x86)%\autoit3\include\"' /> + <!-- include the Scite editor --> + <install cmd='%WPKGSOFTWARE%\scite\%SCITE_VERSION%\SciTE4AutoIt3.exe /S' /> + <install cmd='cmd /c type %WPKGSOFTWARE%\scite\options.properties >> "%PROGRAMFILES(x86)%\autoit3\scite\properties\others.properties"' /> + + <upgrade include="remove" /> + <upgrade include="install" /> + + <remove cmd='taskkill /f /im autoit3help.exe'> + <exit code='0' /> + <exit code='1' /> + <exit code='128' /> + </remove> + + <remove cmd='%wpkgsoftware%\wpkg\tools\waitforprocess.cmd Au_.exe' /> + <remove cmd='cmd /c "%PROGRAMFILES(x86)%\autoit3\uninstall.exe" /S' /> + <remove cmd='%wpkgsoftware%\wpkg\tools\waitforprocess.cmd Au_.exe' /> + + <remove cmd='cmd /c rd /s /q "%systemdrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\autoit v3"'> + <exit code='1' /> + </remove> + + <remove cmd='%wpkgsoftware%\wpkg\tools\waitforprocess.cmd Au_.exe' /> + <remove cmd='cmd /c if exist "%PROGRAMFILES(x86)%\autoit3\scite\uninst.exe" "%PROGRAMFILES(x86)%\autoit3\scite\uninst.exe" /S' /> + <remove cmd='%wpkgsoftware%\wpkg\tools\waitforprocess.cmd Au_.exe' /> + + <remove cmd='cmd /c rd /s /q "%PROGRAMFILES(x86)%\autoit3\" 2>nul'> <!-- adding 2>nul stopped the need for deldir.exe --> + <exit code='1' /> + </remove> + + </package> + +</packages:packages>