[Android Software/Hacking General [Developers Only]] AdriVelazquez:
Hi All,

I'm having issues with my aroma installer... it goes through the entire process; however, the rom is never installed. And the installation portion goes quickly.

I've attached the files and supplied the code below.

Aroma Config

### 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.
#
##
#
##
#
#	AdriVelazquez AROMA Installer
#	Written by AdriVelazquez Using AROMA Installer
#
# Initializing Rom Information & Variables
#
ini_set("rom_name", "LifeLess Rom by Adriel Velazquez");
ini_set("rom_version", "0.6");
ini_set("rom_author", "Adriel Velazquez");
ini_set("rom_device", "Sprint LG Optimus G");
ini_set("rom_date", "8th January 2013");
##
# Splash Screen
#
splash(
#-- Duration 2000ms / 2 seconds
5000,

#-- <AROMA Resource Dir>/LifeLessROM.png
"LifeLessRom"
);
##
# Load Language, Fonts and Theme
#
loadlang("langs/en.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" ); #-- "1" = Big Font
theme("ics");
###################################################################################################################
#
# STEP 2 - SHOW ROM INFORMATION
#
viewbox(
"Welcome",
"You are about to install: <b>"+
ini_get("rom_name")+
"</b> for the <b>"+ini_get("rom_device")+"</b>.\n\n"+
"Press Next to Continue...",
"@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 Roboto-Regular.ttf
##
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
##
##

textbox(
#-- Title
"Important Notes",

#-- Subtitle
"Please Read",

#-- Icon
"@update",

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

###################################################################################################################
# #
# INSTALLATION #
# #
###################################################################################################################

#-------------------------+-----------------[ Clear and Wipe Data ]-----------------+---------------#
#-------------------------+---------------------------------------------------------+---------------#

selectbox(
"Clear all Data?",
"Decide whether to wipe data or not",
"@alert",
"clear.prop",

"Wipe Data?",	"",	2, #-- Group 1. key = "selected.1"
"Full Wipe",	"Wipe Everything. Dalvik, cache, systems *Recommended*",	1,	#-- selected.1 = 1
"Quick Wipe",	"Wipes only Systems",	0	#-- selected.1 = 2
);

#-------------------------+-----------------[ Launchers ]----------------+---------------#
#-------------------------+---------------------------------------------------------+---------------#

selectbox(
"Launchers",
"Select the Launcher you want to use",
"@lg",
"launcher.prop",

"Custom Launcher",	"",	2, #-- Group 1. key = "selected.1"
"Apex Launcher",	"Powerful, fast, and highly customizable home replacement for Android 4.0+",	0,	#-- selected.1 = 1
"Holo Launcher HD",	"Simple, powerful, fast and highly customizable home replacement",	0, #-- selected.1 = 2
"Nova Launcher",	"Performance driven, home screen replacement for Android 4.0+ ",	0,	#-- selected.1 = 3
"Risky Launcher",	"Don't Select!!!!! High Risk Launcher",	0,	#-- selected.1 = 4
"LG Launcher",	"Stick to the stock LG Launcher",	0	#-- selected.1 = 5
);

#-------------------------+-----------------[ System Apps ]----------------+---------------#
#-------------------------+---------------------------------------------------------+---------------#

checkbox(
"Bloatware/System Apps",
"Select the apps you want to install: ",
"@apps",
"systemapps.prop",

"Choose System Apps",	"",	2,
"Calendar Widget",	"LG Calendar Widget",	0,
"FileShare",	"Sharing Files App",	0,
"Email Widget",	"LG Email Widget",	0,
"Facelock",	"Unlock your Phone with your Face",	0,
"LG Browser",	"Why don't you just use chrome...",	0,
"Finance App",	"Do you really own stocks?",	0,
"LG Calculator",	"Math the LG way",	0,
"Calender APK",	"LG know's where you are",	0,
"LG's Email",	"LG Reading all you write",	0,
"LGTagPlus",	"NFC Stickers",	0,
"LG Memo",	"Memos",	0,
"LG Music",	"Music",	0,
"LG Notebook",	"Why would you have Memos and a notebook",	0,
"LG Weather Widget",	"Meteorologist in your pocket",	0,
"CM Apollo Music Player",	"CyanogenMod Music Player ",	0,
"Dropbox",	"With choice of two styles",	0
);

#Themed or unthemed Dropbox?
if
file_getprop("/tmp/aroma/systemapps.prop","item.1.16") == "1"
then
selectbox(
"Dropbox",
"Which Dropbox would you like?",
"@dropbox",
"dropbox.prop",

"Choose",	"",	2,
"Themed",	"Inverted Black Dropbox",	1,
"Unthemed",	"Stock dropbox",	0
);
else
writetmpfile(
"dropbox.prop",
"selected.1=0\n"
);
endif;
#-------------------------+-----------------[ Data Apps ]----------------+---------------#
#-------------------------+---------------------------------------------------------+---------------#

checkbox(
"Applications",
"Select the apps you want to install: ",
"@apps",
"dataapps.prop",

"Choose Data Apps", "",	2,
"AdAway",	"Removes most ads in the browser and other apps.",	1,
"AppSales",	"Shows all Apps currently on sale in the PlayStore and allows you to set notifications for when an app comes on sale.",	1,
"Seeder App",	"Increase Performance",	1,
"FasterGPS",	"Uses region servers to lock onto your GPS much faster.",	1,
"Gallery Excluder",	"Exclude certain folders from the Gallery App.",	1,
"Headphones Shortcuts",	"Change the Audio application shortcuts that appear in the notification panel.",	1,
"Pop-Up Browser",	"Resizable Pop-Up Web Browser.",	1,
"Swipe Dialler",	"A dialler created to replace the stock slow S3 dialler with a more AOSP based one.",	1,
"Titanium Backup",	"Backup, freeze, restore and control your apps.",	1
);
#-------------------------+-----------------[ Google Apps ]----------------+---------------#
#-------------------------+---------------------------------------------------------+---------------#

checkbox(
"Google Apps",
"Select which Google Apps you would like to install:",
"@gapps",
"gapps.prop",

"Choose your Google Apps",	"",	2,
"GMail",	"Google's E-Mail Service",	1,
"Google Now",	"Unstable",	0,
"YouTube",	"Google's Popular Video Streaming Service",	1,
"Google GenieWidget",	"Google News and Weather Widget from the Galaxy Nexus 4",	1,
"Google Wallet",	"Unstable",	0,
"Google Maps",	"Google's mapping and Navigation Service",	1,
"Google+",	"Google's Social Networking app",	1,
"Google Talk",	"Google's in-house IM app",	1,
"Google Books",	"Google Books reader App",	1,
"Google Magazines",	"Google Magazines reader app",	1,
"Google Videos",	"Google Movie rentals",	1
);

#If GMail is picked, show themed or unthemed option
if (prop("gapps.prop","item.1.1")=="1")
then
selectbox(
"GMail",
"GAPPS Theming",
"@gmail",
"gmail.prop",

"Would you like a themed Gmail?",	"",	2,
"Themed",	"Theme this app",	1,
"Unthemed",	"Don't theme this app",	0
);
#Else write temp file showing it unpicked to stop update-installer from freaking out
else
writetmpfile(
"gmail.prop",
"selected.1=0\n"
);
endif;

#If YouTube is picked, show themed or unthemed option
if (prop("gapps.prop","item.1.3")=="1")
then
selectbox(
"YouTube",
"GAPPS Theming",
"@youtube",
"youtube.prop",
"Would you like YouTube to be themed??",	"",	2,
"Themed",	"Theme this app",	1,
"Unthemed",	"Don't theme this app",	0
);
else
#Else write temp file showing it unpicked to stop update-installer from freaking out
writetmpfile(
"youtube.prop",
"selected.1=0\n"
);
endif;

selectbox(
"Play Store",
"Google Play Store",
"@play",
"play.prop",

"Would you like the themed Play Store?",	"",	2,
"Yes",	"Install the Themed Play Store",	1,
"No",	"Install the stock Play Store",	0
);

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")+" "+ini_get("rom_version")+"</b> is being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes, especially when zipaligning after the theme. Please be patient.",

#-- 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>Congratulations...</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