Difference between revisions of "DirectX"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 2: Line 2:
  
  
You can download it from: [http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=en]
+
You can download it from: [http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=en 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. :)
 
'''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.
 
This package is written for Updates till November 2007.
When Microsoft release a new Update you have to change the <check ...> line.'''
+
When Microsoft release a new Update you have to change the <check ...> line.
 +
 
 +
'''When installing this package it can occur an error. Then you have to enable the "SHOW GUI".'''
 +
 
  
 
<pre>
 
<pre>
Line 30: Line 33:
 
</pre>
 
</pre>
  
 +
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: [http://www.microsoft.com/downloads/details.aspx?familyid=1A2393C0-1B2F-428E-BD79-02DF977D17B8&displaylang=en DirectX End-User Runtimes (November 2007)]
 +
 +
<pre>
 +
<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" /q /c /T:"%TEMP%\directx"' >
 +
<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" /q /c /T:"%TEMP%\directx"' >
 +
<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>
 +
</pre>
  
  

Revision as of 16:45, 8 January 2008

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 it can occur an error. 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" /q /c /T:"%TEMP%\directx"' >
			<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" /q /c /T:"%TEMP%\directx"' >
			<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>