Difference between revisions of "Windirstat"
From WPKG | Open Source Software Deployment and Distribution
(Supports x64. Delays until the uninstaller has been removed (since uninstaller is asynchronous WPKG's checks think it has failed otherwise).) |
|||
Line 29: | Line 29: | ||
</package> | </package> | ||
</source> | </source> | ||
+ | |||
+ | SUGGESTION: ping 127.0.0.1 instead of microsoft.com, less traffic & less likely to fail. | ||
Revision 2 tested with: | Revision 2 tested with: |
Latest revision as of 21:53, 28 January 2015
Silent installer for WinDirStat, a disk usage statistics viewer and cleanup tool for Microsoft Windows, based on KDirStat.
The WinDirStat website is at http://windirstat.info/.
WPKG Package
<!-- http://windirstat.info/ -->
<package
id="windirstat"
name="WinDirStat Disk Usage Viewer"
revision="2"
reboot="false"
priority="1">
<variable architecture="x64" name="progfiles" value="%PROGRAMFILES(X86)%" />
<variable architecture="x86" name="progfiles" value="%PROGRAMFILES%" />
<check type="file" condition="versionequalto" path="%progfiles%\Windirstat\windirstat.exe" value="1.1.2.80" />
<install cmd='%SOFTWARE%\windirstat\windirstat1_1_2_setup.exe /S' />
<upgrade include='install' />
<remove cmd='"%progfiles%\windirstat\uninstall.exe" /S' />
<!-- The above is asynchronous.
We will attempt to delay for max 30 seconds, or until the uninstaller vanishes. Whichever comes first.
-->
<remove cmd='%COMSPEC% /C for /L %X in (1,1,30) do if exist "%progfiles%\windirstat\uninstall.exe" @ping microsoft.com -n 1 -w 1000>nul' >
<exit code="1" />
</remove>
</package>
SUGGESTION: ping 127.0.0.1 instead of microsoft.com, less traffic & less likely to fail.
Revision 2 tested with:
* Windows XP 32 bit * Windows 7 64 bit * Windows 7 32 bit