From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Silent installer for WinDirStat, a disk usage statistics viewer and cleanup tool for Microsoft Windows, based on KDirStat.

The WinDirStat website is at

WPKG Package[edit]

<!--  -->
        name="WinDirStat Disk Usage Viewer"

        <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="" />
        <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 -n 1 -w 1000>nul' >
                <exit code="1" />

SUGGESTION: ping instead of, less traffic & less likely to fail.

Revision 2 tested with:

  * Windows XP 32 bit
  * Windows 7 64 bit
  * Windows 7 32 bit