Bug 533185, disable JIT debugger on windows slaves, r=bhearsum
authorNick Thomas <nthomas@mozilla.com>
Mon, 25 Jan 2010 14:58:57 +1300
changeset 34 710ba96db73b
parent 33 0687536ad478
child 35 378a823c1669
push id28
push usernthomas@mozilla.com
push date2010-01-25 01:59 +0000
reviewersbhearsum
bugs533185
Bug 533185, disable JIT debugger on windows slaves, r=bhearsum
disable-jit-debugger/CLIENT_DATA/disable-jit.ins
disable-jit-debugger/CLIENT_DATA/enable-jit.ins
disable-jit-debugger/OPSI/control
disable-jit-debugger/OPSI/postinst
disable-jit-debugger/OPSI/preinst
new file mode 100644
--- /dev/null
+++ b/disable-jit-debugger/CLIENT_DATA/disable-jit.ins
@@ -0,0 +1,12 @@
+[Initial]
+Message=Disable Visual Studio JIT Debugger
+StayOnTop=false
+
+[Aktionen]
+Registry_disable_jit
+
+[Registry_disable_jit]
+openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
+set "Auto"="1"
+deletevar "Debugger"
+deletevar "VDebugger"
new file mode 100644
--- /dev/null
+++ b/disable-jit-debugger/CLIENT_DATA/enable-jit.ins
@@ -0,0 +1,11 @@
+[Initial]
+Message=Re-enable Visual Studio JIT Debugger
+StayOnTop=false
+
+[Aktionen]
+Registry_enable_jit
+
+[Registry_enable_jit]
+openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
+set "Auto"="0"
+set "Debugger"='"C:\WINDOWS\system32\vsjitdebugger.exe" -p %ld -e %ld'
new file mode 100644
--- /dev/null
+++ b/disable-jit-debugger/OPSI/control
@@ -0,0 +1,24 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: disable-jit-debugger
+; name is a longer, more descript name.
+name: Disable Visual Studio JIT Debugger
+description: Disables the just-in-time debugger for Visual Studio, which can cause dialog prompts that block slave reboots (bug 533185)
+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: 1.0
+priority: 0
+licenseRequired: False
+productClasses:
+setupScript: disable-jit.ins
+uninstallScript: enable-jit.ins
+updateScript:
+alwaysScript: disable-jit.ins
+onceScript:
new file mode 100644
--- /dev/null
+++ b/disable-jit-debugger/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 100644
--- /dev/null
+++ b/disable-jit-debugger/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
+#