sed the installer

This commit is contained in:
Mario Fetka 2013-07-09 20:54:45 +02:00
parent 13953bcd21
commit d14647b95f
2 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -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]}
}