[Android Software/Hacking General [Developers Only]] thommy86:
I get an error on line 182 col 17 (status 1) but really can't see whats wrong here.. i am reading and testing the script for hours now.. maybe i just need some sleep..:confused:

### 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 Scotland v4");
ini_set("rom_version","2.6.15");
ini_set("rom_author","MiuiScotland Team");
ini_set("rom_device","Samsung Galaxy S2 I9100");
ini_set("rom_date","15 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)

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

theme("miui4");

###################################################################################################################
#
# STEP 2 - SHOW ROM INFORMATION
#
viewbox(
#-- Title
"Miui Scotland",

#-- Text
"Welcome to <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> for the <b>"+ini_get("rom_device")+"</b>.\n\n"+

" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" UPDATED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"Press Next to Continue the Installation...",

#-- Icon
"@welcome"
);

###################################################################################################################
#
# STEP 3 - LICENSE
#
agreebox(
#-- Title
"Terms and Conditions",

#-- Subtitle / Description
"Please read carefully The AROMA Installer Terms and Conditions Below",

#-- Icon
"@license",

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

#-- Checkbox Text
"I Agree with this Terms and Conditions...",

#-- Unchecked Alert Message
"Please check the agreement..."
);

###################################################################################################################
#
# STEP 4 - CHANGELOG
#
textbox(
#-- Title
"Changelog",

#-- Subtitle
"Miui Scotland Changelog",

#-- Icon
"@update",

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

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

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

#-- Icon
"@default",

#-- 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 some extra apps", "@default" #-- selected = 2
);

###################################################################################################################
# #
# MIUI Scotland AROMA Installer #
# #
###################################################################################################################

####### KERNEL

selectbox(
"MIUI Scotland AROMA Installer",
"Please select your kernel",
"@default",
"kernel.prop",

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

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

);

####### MODEM

selectbox(
"MIUI Scotland AROMA Installer",
"Please select your modem",
"@default",
"modem.prop",

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

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

);

####### APPS

if (prop("menu.prop","selected")=="1") then
writetmpfile(
"apps.prop",

#-- Default Values
"item.1.1=0\n"+ #-- YouTube
"item.1.2=0\n"+ #-- ASTRO File Manager
"item.1.3=1\n" #-- Google Maps
);
endif;

if (prop("menu.prop","selected")=="2") then
checkbox(
#-- Title
"MIUI Scotland AROMA Installer",

#-- Sub Title
"Please select your apps",

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

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

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

"Apps", "", 2, #-- Group 1. key = "item.1"
"YouTube", "installing YouTube", 0, #-- item.1 = 1
"ASTRO File Manager","installing ASTRO File Manager ",0, #-- item.1 = 2
"Google Maps", "installing Google Maps", 0 #-- item.1 = 3

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

);
endif;

###########
#
# 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