Difference between revisions of "DirectX"
m |
|||
Line 103: | Line 103: | ||
<install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' /> | <install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' /> | ||
</package> | </package> | ||
+ | </source> | ||
+ | |||
+ | ==DirectX Install for DWG TrueView 2010== | ||
+ | <br> | ||
+ | I had no luck with the above packages at all, silent installs kept failing.<br> | ||
+ | <br> | ||
+ | Anyhoo, as I only need it for [[Autodesk DWG TrueView]] 2010 I just used the DirectX install bundled with '''that''' installer.<br> | ||
+ | I extracted the contents of the DWG installer using [[7-Zip]] and copied the contents of the '''Support\DirectX''' directory contained therein to my DirectX WPKG installation directory. | ||
+ | <br> | ||
+ | <br> | ||
+ | <source lang="xml"> | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | |||
+ | <packages> | ||
+ | |||
+ | <package | ||
+ | id="directx" | ||
+ | name="Microsoft DirectX" | ||
+ | revision="1" | ||
+ | priority="5"> | ||
+ | |||
+ | <check type="file" condition="versiongreaterorequal" path="%WINDIR%\system32\d3dx10_37.dll" value="9.19.949.2187"/> | ||
+ | |||
+ | <install cmd='"%SOFTWARE%\Microsoft\directx\DXSETUP.exe" /silent' > | ||
+ | <exit code="0" /> | ||
+ | <exit code="9" /> | ||
+ | <exit code="3010" reboot="true" /> | ||
+ | </install> | ||
+ | |||
+ | <upgrade cmd='"%SOFTWARE%\Microsoft\directx\DXSETUP.exe" /silent' > | ||
+ | <exit code="0" /> | ||
+ | <exit code="9" /> | ||
+ | <exit code="3010" reboot="true" /> | ||
+ | </upgrade> | ||
+ | |||
+ | </package> | ||
+ | |||
+ | </packages> | ||
</source> | </source> | ||
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 02:17, 10 December 2009
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 /c /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 /c /q "%TEMP%\directx"' />
<upgrade cmd='%COMSPEC% /c rmdir /c /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 /c /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>
DirectX Install for DWG TrueView 2010
I had no luck with the above packages at all, silent installs kept failing.
Anyhoo, as I only need it for Autodesk DWG TrueView 2010 I just used the DirectX install bundled with that installer.
I extracted the contents of the DWG installer using 7-Zip and copied the contents of the Support\DirectX directory contained therein to my DirectX WPKG installation directory.
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="directx"
name="Microsoft DirectX"
revision="1"
priority="5">
<check type="file" condition="versiongreaterorequal" path="%WINDIR%\system32\d3dx10_37.dll" value="9.19.949.2187"/>
<install cmd='"%SOFTWARE%\Microsoft\directx\DXSETUP.exe" /silent' >
<exit code="0" />
<exit code="9" />
<exit code="3010" reboot="true" />
</install>
<upgrade cmd='"%SOFTWARE%\Microsoft\directx\DXSETUP.exe" /silent' >
<exit code="0" />
<exit code="9" />
<exit code="3010" reboot="true" />
</upgrade>
</package>
</packages>