Difference between revisions of "Windirstat"
From WPKG | Open Source Software Deployment and Distribution
m |
(Supports x64. Delays until the uninstaller has been removed (since uninstaller is asynchronous WPKG's checks think it has failed otherwise).) |
||
Line 7: | Line 7: | ||
<source lang="xml"> | <source lang="xml"> | ||
<!-- http://windirstat.info/ --> | <!-- http://windirstat.info/ --> | ||
− | + | <package | |
id="windirstat" | id="windirstat" | ||
name="WinDirStat Disk Usage Viewer" | name="WinDirStat Disk Usage Viewer" | ||
− | revision=" | + | revision="2" |
reboot="false" | reboot="false" | ||
priority="1"> | 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> | ||
</source> | </source> | ||
+ | |||
+ | Revision 2 tested with: | ||
+ | * Windows XP 32 bit | ||
+ | * Windows 7 64 bit | ||
+ | * Windows 7 32 bit | ||
[[Category: Silent Installers]] | [[Category: Silent Installers]] |
Revision as of 20:01, 10 June 2014
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>
Revision 2 tested with:
* Windows XP 32 bit * Windows 7 64 bit * Windows 7 32 bit