Bug 603238 - package to remove console.log and cleanup Temp - r=dustin
authorChris Cooper <ccooper@deadsquid.com>
Thu, 20 Jan 2011 12:08:30 -0500
changeset 72 0f2f36a64c38
parent 71 6cb64e9e5a06
child 73 a1f1fc99a581
push id66
push usercoop@mozilla.com
push dateThu, 20 Jan 2011 17:08:47 +0000
reviewersdustin
bugs603238
Bug 603238 - package to remove console.log and cleanup Temp - r=dustin
cleanup/CLIENT_DATA/cleanup.ins
cleanup/OPSI/control
cleanup/OPSI/postinst
cleanup/OPSI/preinst
new file mode 100644
--- /dev/null
+++ b/cleanup/CLIENT_DATA/cleanup.ins
@@ -0,0 +1,22 @@
+[Initial]
+Message=Cleanup temp files
+StayOnTop=false
+
+[Aktionen]
+DefVar $TempDir$
+DefVar $ProfileDir$
+DefVar $ConsoleLog$
+
+Set $TempDir$ = "C:\Documents and Settings\cltbld\Local Settings\Temp\"
+Set $ProfileDir$ = "C:\Documents and Settings\cltbld\\Application Data\Mozilla\Firefox"
+Set $ConsoleLog$ = $ProfileDir$ + "\console.log"
+
+DosInAnIcon_delete_console_log
+DosInAnIcon_delete_temp_contents
+
+[DosInAnIcon_delete_console_log]
+del /q /f "$ConsoleLog$"
+
+[DosInAnIcon_delete_temp_contents]
+rmdir /q /s "$TempDir$"
+mkdir "$TempDir$"
new file mode 100644
--- /dev/null
+++ b/cleanup/OPSI/control
@@ -0,0 +1,20 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+id: cleanup
+name: Cleanup temp files
+description: Removes temp files and logs
+advice: 
+version: 1.0
+priority: 0
+licenseRequired: False
+productClasses: 
+setupScript: cleanup.ins
+uninstallScript: 
+updateScript: 
+alwaysScript: cleanup.ins
+onceScript: 
new file mode 100644
--- /dev/null
+++ b/cleanup/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for cleanup
+# 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/cleanup/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for cleanup
+# 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
+#