Difference between revisions of "Nmap"
From WPKG | Open Source Software Deployment and Distribution
(Created page with "Nmap uses NSIS:_Nullsoft_Scriptable_Install_System. Binary at http://nmap.org/dist/nmap-6.40-setup.exe '''Note that at the time of writing Wireshark depends upon this''...") |
(Upgrade installer) |
||
Line 1: | Line 1: | ||
Nmap uses [[NSIS:_Nullsoft_Scriptable_Install_System]]. | Nmap uses [[NSIS:_Nullsoft_Scriptable_Install_System]]. | ||
− | Binary at | + | Binary at https://nmap.org/dist/nmap-7.31-setup.exe |
'''Note that at the time of writing [[Wireshark]] depends upon this''' | '''Note that at the time of writing [[Wireshark]] depends upon this''' | ||
<source lang="xml"> | <source lang="xml"> | ||
+ | |||
<packages:packages xmlns:packages="http://www.wpkg.org/packages" | <packages:packages xmlns:packages="http://www.wpkg.org/packages" | ||
− | + | xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
− | + | xsi:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd"> | |
<!-- | <!-- | ||
Line 15: | Line 16: | ||
--> | --> | ||
<package id='nmap' | <package id='nmap' | ||
− | + | name='Nmap' | |
− | + | revision="%version%-1" | |
− | + | priority='50' | |
− | + | reboot='false' > | |
− | + | <variable name="version" value="7.31" /> | |
+ | <variable architecture="x64" name="UNINSTALLER" value="%PROGRAMFILES(X86)%\Nmap\uninstall.exe" /> | ||
+ | <variable architecture="x86" name="UNINSTALLER" value="%PROGRAMFILES%\Nmap\uninstall.exe" /> | ||
− | + | <check type='uninstall' condition='exists' path='Nmap %version%' /> | |
− | + | <install cmd='%SOFTWARE%\nmap\nmap-%version%-setup.exe /S' /> | |
− | + | <remove cmd='"%UNINSTALLER%" /S' /> | |
+ | <!--Wait 30 seconds, or until the uninstaller has vanished | ||
+ | Otherwise the check will still pass (asynch uninstaller)--> | ||
+ | <remove cmd='%COMSPEC% /C for /L %X in (1,1,30) do if exist "%UNINSTALLER%" @ping microsoft.com -n 1 -w 1000>nul' > | ||
+ | <exit code="1" /> | ||
+ | </remove> | ||
− | + | <upgrade include="install" /> | |
− | + | <downgrade include="upgrade" /> | |
</package> | </package> | ||
Line 35: | Line 43: | ||
</packages:packages> | </packages:packages> | ||
+ | |||
</source> | </source> |
Latest revision as of 13:32, 7 November 2016
Nmap uses NSIS:_Nullsoft_Scriptable_Install_System.
Binary at https://nmap.org/dist/nmap-7.31-setup.exe
Note that at the time of writing Wireshark depends upon this
<packages:packages xmlns:packages="http://www.wpkg.org/packages"
xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd">
<!--
Options enumerated here: https://svn.nmap.org/nmap/mswin32/nsis/Nmap.nsi.in
You don't seem to get shortcuts with the silent installer.
-->
<package id='nmap'
name='Nmap'
revision="%version%-1"
priority='50'
reboot='false' >
<variable name="version" value="7.31" />
<variable architecture="x64" name="UNINSTALLER" value="%PROGRAMFILES(X86)%\Nmap\uninstall.exe" />
<variable architecture="x86" name="UNINSTALLER" value="%PROGRAMFILES%\Nmap\uninstall.exe" />
<check type='uninstall' condition='exists' path='Nmap %version%' />
<install cmd='%SOFTWARE%\nmap\nmap-%version%-setup.exe /S' />
<remove cmd='"%UNINSTALLER%" /S' />
<!--Wait 30 seconds, or until the uninstaller has vanished
Otherwise the check will still pass (asynch uninstaller)-->
<remove cmd='%COMSPEC% /C for /L %X in (1,1,30) do if exist "%UNINSTALLER%" @ping microsoft.com -n 1 -w 1000>nul' >
<exit code="1" />
</remove>
<upgrade include="install" />
<downgrade include="upgrade" />
</package>
</packages:packages>