Bug 529938: Install DirectX 10 SDK on buildbots. r=bhearsum
authorRail Aliev <rail@mozilla.com>
Mon, 18 Oct 2010 10:39:38 +0300
changeset 65 28b9f1059916
parent 64 376cbaef4d3a
child 66 49061b7f307d
push id59
push userraliiev@mozilla.com
push date2010-10-18 07:40 +0000
reviewersbhearsum
bugs529938
Bug 529938: Install DirectX 10 SDK on buildbots. r=bhearsum
dx10sdk/CLIENT_DATA/dx10sdk.ins
dx10sdk/CLIENT_DATA/dx10sdk.unins
dx10sdk/OPSI/control
dx10sdk/OPSI/postinst
dx10sdk/OPSI/preinst
new file mode 100644
--- /dev/null
+++ b/dx10sdk/CLIENT_DATA/dx10sdk.ins
@@ -0,0 +1,33 @@
+[Initial]
+Message=DirectX Software Development Kit 10 Install...
+StayOnTop=false
+
+[Aktionen]
+DefVar $InstallDir$
+DefVar $SevenZip$
+Set $InstallDir$ = "d:\sdks\dx10"
+Set $SevenZip$ = "d:\mozilla-build\7zip\7z.exe"
+ 
+DosInAnIcon_install_dxsdk
+Registry_install_dxsdk
+
+[DosInAnIcon_install_dxsdk]
+"$SevenZip$" x %SCRIPTPATH%\DXSDK_Feb10.exe -aoa -o"$InstallDir$" DXSDK\Lib DXSDK\Include DXSDK\Redist
+move "$InstallDir$\DXSDK\Lib" "$InstallDir$"
+move "$InstallDir$\DXSDK\Include" "$InstallDir$"
+move "$InstallDir$\DXSDK\Redist" "$InstallDir$"
+rmdir /s /q "$InstallDir$\DXSDK"
+
+
+[Registry_install_dxsdk]
+openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX]
+set "InstallMDX" = REG_DWORD:00000001
+set "SDKVersion" = "9.28.1886.0"
+
+openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Microsoft DirectX SDK (February 2010)]
+set "ProductName" = "Microsoft DirectX SDK (February 2010)"
+set "InstalledVersion" = "9,28,1886,0"
+set "InstallPath" = "$InstallDir$"
+set "InstallType" = "DXSDK"
+set "LastInstallDate" = REG_BINARY:f0,ba,e8,2f,b4,6a,cb,01
+set "InstalledFeatures"= REG_DWORD:00000060
new file mode 100644
--- /dev/null
+++ b/dx10sdk/CLIENT_DATA/dx10sdk.unins
@@ -0,0 +1,20 @@
+[Initial]
+Message=DirectX Software Development Kit 10 Uninstall...
+StayOnTop=false
+
+[Aktionen]
+DefVar $InstallDir$
+Set $InstallDir$ = "d:\sdks\dx10"
+ 
+DosInAnIcon_uninstall_dxsdk
+Registry_uninstall_dxsdk
+
+[DosInAnIcon_uninstall_dxsdk]
+rmdir /s /q "$InstallDir$"
+
+[Registry_uninstall_dxsdk]
+openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX]
+DeleteVar "InstallMDX"
+DeleteVar "SDKVersion"
+
+deletekey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Microsoft DirectX SDK (February 2010)]
new file mode 100644
--- /dev/null
+++ b/dx10sdk/OPSI/control
@@ -0,0 +1,26 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: dx10sdk
+; name is a longer, more descript name.
+name: DirectX Software Development Kit (February 2010)
+description: DirectX Software Development Kit contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications.
+advice: 
+; You should put the version number of the application here.
+; If this package isn't for installing an application it doesn't really matter.
+version: 9.28.1886
+priority: 0
+licenseRequired: False
+productClasses: 
+; Change this to something more sensible.
+setupScript: dx10sdk.ins
+; These are rarely used.
+uninstallScript: dx10sdk.unins
+updateScript: 
+alwaysScript: 
+onceScript: 
new file mode 100755
--- /dev/null
+++ b/dx10sdk/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for template
+# This script executes after unpacking files from that archive and registering the product at the server.
+#
+# The following environment variables can be used to obtain information about the current installation:
+#   PRODUCT_ID: id of the current product
+#   CLIENT_DATA_DIR: directory which contains the installed client data
+#
new file mode 100755
--- /dev/null
+++ b/dx10sdk/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for template
+# This script executes before that package will be unpacked from its archive file.
+#
+# The following environment variables can be used to obtain information about the current installation:
+#   PRODUCT_ID: id of the current product
+#   CLIENT_DATA_DIR: directory where client data will be installed
+#