Difference between revisions of "DirectX"
m (add cat) |
|||
Line 104: | Line 104: | ||
</package> | </package> | ||
</source> | </source> | ||
+ | |||
[[Category:Silent Installers]] | [[Category:Silent Installers]] | ||
+ | [[Category:Microsoft software]] |
Latest revision as of 13:44, 1 April 2011
This is a silent installer for DirectX End-User Runtime Web Installer
You can download it from: DirectX End-User Runtime Web Installer
Attention: When starting this Installer with WPKG it downloads the latest DirectX files out of the Internet. That means when you have many Computers in your business you have a lot of traffic. :)
This package is written for Updates till November 2007. When Microsoft release a new Update you have to change the <check ...> line.
When installing this package an error may occur. Then you have to enable the "SHOW GUI".
<package
id="Microsoft - DirectX 9"
name="Microsoft - Directx 9.0"
revision="9211148"
priority="10">
<check type="file" condition="versiongreaterorequal" path="%WINDIR%\system32\x3daudio1_2.dll" value="9.21.1148.0"/>
<install cmd='"%SOFTWARE%\Microsoft\DirectX\9.0c\DXwebSetup.exe" /c:"DXwSetup.exe /windowsupdate" /q /r:n' >
<exit code="0" />
<exit code="3010" reboot="true" />
</install>
<upgrade cmd='"%SOFTWARE%\Microsoft\DirectX\9.0c\DXwebSetup.exe" /c:"DXwSetup.exe /windowsupdate" /q /r:n' >
<exit code="0" />
<exit code="3010" reboot="true" />
</upgrade>
</package>
When you want to prevent that the package is causing a lot of traffic you can use something like this. But here you have to download the latest DirectX by yourself.
For example this one here: DirectX End-User Runtimes (November 2007)
<package
id="Microsoft - DirectX 9"
name="Microsoft - Directx 9.0"
revision="9211148"
priority="10">
<check type="file" condition="versiongreaterorequal" path="%WINDIR%\system32\x3daudio1_2.dll" value="9.21.1148.0"/>
<install cmd='%COMSPEC% /c rmdir /s /q "%TEMP%\directx"' />
<install cmd='"%SOFTWARE%\Microsoft\DirectX\9.0c\directx_nov2007_redist.exe" /c /t:"%TEMP%\directx" /q:a' >
<exit code="0" />
<exit code="3010" />
</install>
<install cmd='"%TEMP%\directx\DXSETUP.exe" /silent' >
<exit code="0" />
<exit code="3010" reboot="true" />
</install>
<install cmd='%COMSPEC% /c rmdir /s /q "%TEMP%\directx"' />
<upgrade cmd='%COMSPEC% /c rmdir /s /q "%TEMP%\directx"' />
<upgrade cmd='"%SOFTWARE%\Microsoft\DirectX\9.0c\directx_nov2007_redist.exe" /c /t:"%TEMP%\directx" /q:a' >
<exit code="0" />
<exit code="3010" />
</upgrade>
<upgrade cmd='"%TEMP%\directx\DXSETUP.exe" /silent' >
<exit code="0" />
<exit code="3010" reboot="true" />
</upgrade>
<upgrade cmd='%COMSPEC% /c rmdir /s /q "%TEMP%\directx"' />
</package>
This is a silent installer for DirectX 9 for Windows 2000.
<package id="directx"
name="Direct X 9 for Windows 2000"
execute="once"
priority="100">
<!-- DirectX 9.0c Redistributable for Software Developers - Multilingual -->
<!-- can't test for this? -->
<!-- if we have this dir, the SILENT installer WILL ASK if it should overwrite files -->
<install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' >
<exit code="2" />
</install>
<install cmd='%SOFTWARE%\directx9\directx_9c_redist.exe /q /c /t:"%TEMP%\dx9c"' >
<exit code="194" reboot="true" />
<exit code="1603" />
<exit code="3010" reboot="true" />
</install>
<install cmd='"%TEMP%\dx9c\dxsetup.exe" /silent'>
<exit code="1" />
<exit code="-18" />
</install>
<install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' />
</package>