Difference between revisions of "DirectX"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 11: Line 11:
 
'''When installing this package it can occur an error. Then you have to enable the "SHOW GUI".'''
 
'''When installing this package it can occur an error. Then you have to enable the "SHOW GUI".'''
  
 
+
<source lang="xml">
<pre>
+
 
<package
 
<package
 
id="Microsoft - DirectX 9"
 
id="Microsoft - DirectX 9"
Line 31: Line 30:
 
</upgrade>
 
</upgrade>
 
</package>
 
</package>
</pre>
+
</source>
  
 
When you want to prevent that the package is causing a lot of traffic you can use
 
When you want to prevent that the package is causing a lot of traffic you can use
Line 39: Line 38:
 
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)]
 
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>
+
<source lang="xml">
 
<package
 
<package
 
id="Microsoft - DirectX 9"
 
id="Microsoft - DirectX 9"
Line 71: Line 70:
 
<upgrade cmd='%COMSPEC% /c rmdir /c /q "%TEMP%\directx"' />
 
<upgrade cmd='%COMSPEC% /c rmdir /c /q "%TEMP%\directx"' />
 
</package>
 
</package>
</pre>
+
</source>
  
  
Line 80: Line 79:
 
This is a silent installer for DirectX 9 for Windows 2000.
 
This is a silent installer for DirectX 9 for Windows 2000.
  
<pre>
+
<source lang="xml">
 
  <package id="directx"
 
  <package id="directx"
 
           name="Direct X 9 for Windows 2000"
 
           name="Direct X 9 for Windows 2000"
Line 104: Line 103:
 
  <install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' />
 
  <install cmd='cmd /c rmdir /s /q "%TEMP%\dx9c"' />
 
  </package>  
 
  </package>  
</pre>
+
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 18:24, 8 February 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>