Node.js
Silent installer for node.js: https://nodejs.org/
<?xml version="1.0" encoding="UTF-8"?>
<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">
<package
id="nodejs"
name="Node.js"
revision="1.%version%"
reboot="false"
priority="1">
<variable name="version" value="8.4.0" />
<!-- standard variables - usually in config.xml -->
<variable name="BITS8664" value="64" architecture="x64" />
<variable name="BITS8664" value="86" architecture="x86" />
<variable name="SOFTWARE" value="software" />
<variable name="DOWNLOADERPATH" value="tools\downloader\downloader.cmd" />
<check type="uninstall" condition="versiongreaterorequal" path="Node.js" value="%version%" />
<variable name="installerPath" value="nodejs\node-v%version%-x%BITS8664%.msi"/>
<variable name="installerURL" value="https://nodejs.org/dist/v%version%/node-v%version%-x%BITS8664%.msi" />
<!-- conditional download -->
<install cmd='"%DOWNLOADERPATH%" "%installerURL%" "%SOFTWARE%\%installerPath%" >NUL'>
<condition><check type="logical" condition="not"><check type="file" condition="exists" path="%SOFTWARE%\%installerPath%" /></check></condition>
</install>
<install cmd='MsiExec.exe /i"%SOFTWARE%\%installerPath%" /qn /norestart ALLUSERS=1 ' />
<upgrade include="install" />
<remove cmd='WMIC product where name="Node.js" call uninstall' />
</package>
</packages:packages>