[Android Software/Hacking General [Developers Only]] thommy86:
Thanks.. also found the same mistake on the modem part.. removed that comma also.. but still the error on 231..

Edit:

Places back the original line.. zipping now..!

Edit 2:

Still the same error.. Syntax on line 231.

Edit 3:

fixed line 231 error by un # line 243,245,246

now i got an error on line 298 col 4

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.00 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 2.00
# Binary Codename : Dahlia
#

calibrate("0.8429","51","0.9658", "9", "yes");
ini_set("rom_name","Miui v4");
ini_set("rom_version","2.6.1");
ini_set("rom_author","MiuiScotland Team");
ini_set("rom_device","Samsung Galaxy S2 I9100");
ini_set("rom_date","1 June 2012");

splash(
5000,
"miuiscotland"
);

anisplash(
4,
"splash/a1", 500,
"splash/a2", 30,
"splash/a3", 30,
"splash/a4", 30,
"splash/a5", 30,
"splash/a6", 30
);

#
# Set Small Font to Support all fonts
#
fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" );
#-- Use sets of font (Font Family)

###################################################################################################################
#
# SHOW LANGUAGE SELECTION
#
selectbox(
#-- Title
"Select Language",

#-- Sub Title
"Please select installer language that you want to use in this installation test:",

#-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
"@default",

#-- Will be saved in /tmp/aroma/theme.prop
"lang.prop",

#---------------------------------[ Selectbox Without Group ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"English", "Welcome to Installer", 1, #-- selected.0 = 1
"Indonesian", "Selamat datang di Installer", 0, #-- selected.0 = 2
"Espanol", "Bienvenido al Instalador", 0, #-- selected.0 = 3
"Simplified Chinesse","?????", 0, #-- selected.0 = 4
"Arabic", "????? ??? ?? ??????", 0, #-- selected.0 = 5
"French", "Bienvenue dans l'installateur", 0, #-- selected.0 = 6
"Russian", "????? ?????????? ? ??????????", 0, #-- selected.0 = 7
"Italian", "Benvenuti Installer", 0, #-- selected.0 = 8
"Hebrew", "?????? ????? ??????", 0, #-- selected.0 = 9
"Germany", "Willkommen bei Installer", 0, #-- selected.0 = 10
"Nederlands", "Welkom bij de installer", 0 #-- selected.0 = 11
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

##
# SET LANGUAGE & FONT FAMILY
#
if prop("lang.prop","selected.0")=="1" then
loadlang("langs/en.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font
endif;

if prop("lang.prop","selected.0")=="2" then
loadlang("langs/id.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="3" then
loadlang("langs/es.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="4" then
loadlang("langs/cn.lang");
fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="5" then
loadlang("langs/ar.lang");
fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="6" then
loadlang("langs/fr.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="7" then
loadlang("langs/ru.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="8" then
loadlang("langs/it.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="9" then
loadlang("langs/he.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="10" then
loadlang("langs/de.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="11" then
loadlang("langs/nl.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

###################################################################################################################
#
# STEP 1 - SELECT THEME - deleted
#

theme("miui4");

###################################################################################################################
#
# STEP 2 - SHOW ROM INFORMATION
#
viewbox(
#-- Title
"<~welcome.title>",

#-- Text
"<~welcome.text1> <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.\n\n"+

"<~welcome.text2>\n\n"+

" <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" <~welcome.codename>\t: <b><#selectbg_g>Dahlia</#></b>\n"+
" <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"<~welcome.next>",

#-- Icon
"@welcome"
);

###################################################################################################################
#
# STEP 3 - LICENSE
#
agreebox(
#-- Title
"<~terms.title>",

#-- Subtitle / Description
"<~terms.desc>",

#-- Icon
"@license",

#-- Text Content ( Read from <AROMA Resource Dir>/license.txt )
resread("license.txt"),

#-- Checkbox Text
"<~terms.check>",

#-- Unchecked Alert Message
"<~terms.confirm>"
);

###################################################################################################################
#
# STEP 4 - CHANGELOG
#
textbox(
#-- Title
"<~changelog.title>",

#-- Subtitle
"<~changelog.desc>",

#-- Icon
"@update",

#-- Arg 4
resread("changelog.txt")
);

##
##-- Back To English :D - and Use DroidSans.ttf
##
alert("Back To English","OK, Multilanguage demo ends here... It will use english now...", "@info");
#loadlang("langs/en.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
##
##

###################################################################################################################
#
# STEP 5 - SHOW MENUBOX - (STEP 6 + STEP 7)
#
menubox(
#-- Title
"MIUI Scotland AROMA Installer",

#-- Sub Title
"Please select a installation method",

#-- Icon
"@apps",

#-- Will be saved in /tmp/aroma/menu.prop
"menu.prop",

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Default installation", "ROM will be normally installed.", "@install", #-- selected = 1
"Custom installation", "You can choose different kernels", "@default" #-- selected = 2
);

###################################################################################################################
# #
# AROMA INSTALLER DEMO #
# #
###################################################################################################################

##--------------------------------------
#
# System Info Demo
#

if (prop("menu.prop","selected")=="1") then
#-- NOTE: mods.prop should exists, or updater-script will error
writetmpfile(
#-- Prop file will write to /tmp/aroma/mods.prop
"mods.prop",

#-- Default Values
"selected.1=1\n"+ #-- Default Kernel = SiyahKernel v3.3.1
"selected.2=6\n" #-- Default Modem = XXLPS

);
endif;

if
( (prop("menu.prop","selected")=="2") then

selectbox(
#-- Title
"<~installmain.title>",

#-- Sub Title
"<~installmain.subtitle>",

#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png
"@default",

#-- Will be saved in /tmp/aroma/mods.prop
"mods.prop",

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Kernel", "", 2, #-- Group 1. key = "selected.1"
"SiyahKernel v3.3.1", "installing Siyah kernel", 0, #-- selected.1 = 1
"N.E.A.K. v2.0.5x ", "installing N.E.A.K. kernel", 0, #-- selected.1 = 2

"Modem", "", 2, #-- Group 2. key = "selected.2"
"KE7", "Installing KE7", 0, #-- selected.2 = 1
"KH3", "Installing KH3", 0, #-- selected.2 = 2
"KI3", "Installing KI3", 0, #-- selected.2 = 3
"KI4", "Installing KI4", 0, #-- selected.2 = 4
"KL1", "Installing KL1", 0, #-- selected.2 = 5
"XXLPS", "Installing XXLPS", 0, #-- selected.2 = 6
"NEKF2", "Installing NEKF2", 0, #-- selected.2 = 7
"NELP2", "Installing NELP2", 0 #-- selected.2 = 8

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
endif;

###################################################################################################################
# #
# INSTALLATION DEMO #
# #
###################################################################################################################

###################################################################################################################
#
# STEP 8 - CUSTOMIZE YOUR INSTALLATION * APPS COMMING SOON)
#

##
#
# Next Screen is Installation UI, So change the next button text to "Install Now"
#
ini_set("text_next", "Install Now");

###################################################################################################################
#
# STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
#
viewbox(
#-- Title
"Ready to Install",

#-- Text
"The wizard is ready to begin installation.\n\n"+
"Press <b>Install Now</b> to begin the installation.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",

#-- Icon
"@install"
);

##
#
# Next Button in successfull installation should be back to "Next >"
#
ini_set("text_next", "Next >");

###################################################################################################################
#
# STEP 10 - INSTALLATION PROCESS
#
setvar("retstatus",
install(
#-- Title
"Installing",

#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);

##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");

###################################################################################################################
#
# STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
#
# You can use return value or "reboot_it" variable to retrive checkbox value
# Example:
# if (checkviewbox(....)=="1" then
# ... checked ...
# endif;
#
checkviewbox(
#-- Title
"Installation Completed",

#-- Text
"<#selectbg_g><b>Congratulation...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
"Installer Status: "+getvar("retstatus")+"\n\n",

#-- Icon
"@welcome",

#-- Checkbox Text
"Reboot your device now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",

#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);

###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
#
# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("onfinish") before, use this command to revert it.
#
reboot("onfinish");
endif;

#---- FINISH