From d14647b95fdfb4cc3ad82d38835b5e762ecdfd38 Mon Sep 17 00:00:00 2001
From: Mario Fetka <mario.fetka@gmail.com>
Date: Tue, 9 Jul 2013 20:54:45 +0200
Subject: [PATCH] sed the installer

---
 builder-product.cfg   | 5 +----
 builder-targets-cb.sh | 7 +++++++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/builder-product.cfg b/builder-product.cfg
index 1921ad7..1938b5e 100644
--- a/builder-product.cfg
+++ b/builder-product.cfg
@@ -21,14 +21,11 @@ DL_SOURCE[0]="http://cordis.europa.eu/fp7/ict/organic-elec-visual-display/icons/
 DL_FILE[1]="Opera_${VERSION}_Setup.exe"
 DL_SOURCE[1]="ftp://ftp.opera.com/pub/opera/desktop/${VERSION}/win/Opera_${VERSION}_Setup.exe"
 DL_ARCH[1]="X86"
-DL_EXTRACT_FORMAT[1]="7zip"
+DL_WINST_NAME[1]="InstallExe"
 
 # File array index for the image showing while installing the program
 ICON_DL_INDEX=0
 
-WINST_NAME[0]="InstallExe"
-WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\launcher.exe"
-
 OPSI_INI_SECTION[0]="X86"
 OPSI_INI_OPTION[0]="UninstallProg"
 OPSI_INI_VALUE[0]="Opera.exe"
diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh
index 9a3d4a8..71cb76f 100644
--- a/builder-targets-cb.sh
+++ b/builder-targets-cb.sh
@@ -23,3 +23,10 @@ function cleanup() {
     echo "Cleanup"
     builder_cleanup
 }
+
+function create() {
+    echo "Create"
+    builder_create
+
+    sed -e "s!/install!/install /silent /launchopera 0 /quicklaunchshortcut 0 /setdefaultbrowser 0!" -i $INST_DIR/CLIENT_DATA/X86/${DL_FILE[1]}
+}