[Android Software/Hacking General [Developers Only]] OMJ:
I've been trying to convert my battery mods from selectbox to menubox so I can use a icon of each battery next to the selection, but the selected apk is not being flashed. Here is my current code:

if
file_getprop("/tmp/aroma-data/custom.prop","item.1.1") == "1"
then
menubox(
"Which Battery Mod Do You Prefer?",
"Please Select:",
"@apps",
"battery.prop",

"Circle w/Percent","This will install the circle battery","@circle",
"Another Circle w/Percent","This will install another circle battery","@circle2",
"Stock Sense w/ no Percent","This will install the stock battery","@stock",
"Stock Sense w/Percent","This will install the stock battery w/ percent","@stock2",
"Blue Stock Sense w/Percent","This will install the stock battery w/ percent","@stock3"

);
endif;

if
file_getprop("/tmp/aroma-data/custom.prop","item.1.1") == "1"
then
ui_print("-> Adding Custom Battery");

if file_getprop("/tmp/aroma-data/battery.prop","selected.0") == "1" then
ui_print("-> Adding Circle w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/circlepercent", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.0") == "2" then
ui_print("-> Adding Circle 2 w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/circlepercent2", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.0") == "3" then
ui_print("-> Adding Stock Sense w/ no Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/stock", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.0") == "4" then
ui_print("-> Adding Stock Sense w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/stockpercent", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.0") == "5" then
ui_print("-> Adding Blue Stock Sense w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/bluepercent", "/system");
endif;
endif;
endif;
endif;
endif;
endif;

So based on amarullz statement above, I changed updater-script to the following but it still is not working. What's wrong? thx

if
file_getprop("/tmp/aroma-data/custom.prop","item.1.1") == "1"
then
ui_print("-> Adding Custom Battery");

if file_getprop("/tmp/aroma-data/battery.prop","selected.1") then
ui_print("-> Adding Circle w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/circlepercent", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.2")then
ui_print("-> Adding Circle 2 w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/circlepercent2", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.3") then
ui_print("-> Adding Stock Sense w/ no Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/stock", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.4") then
ui_print("-> Adding Stock Sense w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/stockpercent", "/system");
else
if file_getprop("/tmp/aroma-data/battery.prop","selected.5") then
ui_print("-> Adding Blue Stock Sense w/Percent Battery");
delete("/system/app/SystemUI.apk");
package_extract_dir("customize/battery/bluepercent", "/system");
endif;
endif;
endif;
endif;
endif;
endif;

*edit*

resolved..... http://xdaforums.com/showpost.php?p=35797143&postcount=421