[Android Software/Hacking General [Developers Only]] Wajk:
question

Hi Aroma Installer is amazing, almost everything working very well,

but I have one problem.

If I understand right something wrong with "writetmpfile" function for me.

If I choose Default(1) install option install working right, but after I pressed Finish button, and I got this message:

"AROMA INSTALLER Finished..."

E: Error in..... zip

(Status 0)

Installation Aborted

If I choose Minimal (2) install option install working right (i checked result and installer install only required(minimal) apps), but after I pressed Finish button, I got same message like before.

(But i tell again, installer working right so it was delete/install right apps, i just got error)

But if I choose Custom settings for install and i got Check boxes, after I didn't get error.

I use Aroma 2.56, and I downloaded Binary and i run it without any mode, i got same result.

Here is second part of my aroma-config

###################################################################################################################
#
# STEP 8 - CUSTOMIZE YOUR INSTALLATION
#
if (prop("type.prop","selected")!="3") then
#-- IF Installation type not "Custom", don't show custom setup, then write default customize.prop
#-- NOTE: customize.prop should exists, or updater-script will error
writetmpfile(
#-- Prop file will write to /tmp/aroma/customize.prop
"customize.prop",

#-- Default Values ( item.x.x = value. value=1 selected, value=0 un-selected )
iif(
#-- If Minimalist
prop("type.prop","selected")=="2",

#-- True Value (minimal install)
"item.1.1=0\n"+ #--
"item.1.2=1\n"+ #--
"item.1.3=0\n"+ #--
"item.1.4=0\n"+ #--
"item.1.5=0\n"+ #--
"item.1.6=1\n"+ #--
"item.1.7=0\n"+ #--
"item.1.8=0\n"+ #--
"item.1.9=0\n"+ #--
"item.1.10=0\n"+ #--
"item.1.11=0\n"+ #--
"item.1.12=0\n"+ #--

"item.2.1=0\n"+ #--
"item.2.2=0\n"+ #--
"item.2.3=0\n"+ #--
"item.2.4=1\n"+ #--

"item.3.1=0\n"+ #--
"item.3.2=0\n"+ #--

"item.4.1=0\n"+ #--
"item.4.2=0\n"+ #--
"item.4.3=0\n"+ #--
"item.4.4=0\n" #--
,
#-- False Value (non minimal install)
"item.1.1=1\n"+ #--
"item.1.2=1\n"+ #--
"item.1.3=1\n"+ #--
"item.1.4=1\n"+ #--
"item.1.5=1\n"+ #--
"item.1.6=1\n"+ #--
"item.1.7=1\n"+ #--
"item.1.8=1\n"+ #--
"item.1.9=1\n"+ #--
"item.1.10=1\n"+ #--
"item.1.11=1\n"+ #--
"item.1.12=1\n"+ #--

"item.2.1=1\n"+ #--
"item.2.2=1\n"+ #--
"item.2.3=1\n"+ #--
"item.2.4=1\n"+ #--

"item.3.1=1\n"+ #--
"item.3.2=1\n"+ #--

"item.4.1=1\n"+ #--
"item.4.2=1\n"+ #--
"item.4.3=1\n"+ #--
"item.4.4=1\n" #--
)
);
else
#-- IF Installation type = "Custom" Show Customize Selection
checkbox(
#-- Title
"Customize Your Installation",

#-- Sub Title
"Select the program or mod features you want to installed.\n"+
"Select an item in the list below to change how a feature is installed.",

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

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

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

"Miui applications", "", 2, #-- Group 1. key = "item.1.x"
"AntiSpam", "Miui Firewall app", 1, #-- item.1.1 = Selected by default
"Browser", "Miui Internet Browser", 1, #-- item.1.2 = Un-Selected by default
"Compass", "Miui Compass app", 1, #-- item.1.3 = Un-Selected by default
"Email", "Miui Email app", 1, #-- item.1.4 = Un-Selected by default
"FM Radio", "Miui FM Radio app", 1, #-- item.1.5 = Un-Selected by default
"Gallery", "Miui Gallery app", 1, #-- item.1.6 = Un-Selected by default
"Music", "Miui Music app", 1, #-- item.1.7 = Un-Selected by default
"Monitor", "Miui Network monitor app", 1, #-- item.1.8 = Un-Selected by default
"Notes", "Miui Notes app", 1, #-- item.1.9 = Un-Selected by default
"SoundRecorder", "Miui Sound Recorder app", 1, #-- item.1.10 = Un-Selected by default
"Torch", "Miui Torch app", 1, #-- item.1.11 = Un-Selected by default
"Updater", "Miui Updater app", 1, #-- item.1.12 = Un-Selected by default

"CM7 applications", "", 2, #-- Group 2. key = "item.2.x"
"BasebandSwitcher", "Baseband switcher", 1, #-- item.2.1 = Selected by default
"DSPManager", "CM7 DSP Manager", 1, #-- item.2.2 = Un-Selected by default
"MotoPhonePortal", "Motorola Phone Portal app", 1, #-- item.2.3 = Un-Selected by default
"Stk", "Sim Toolkit app", 1, #-- item.2.4 = Un-Selected by default

"Google applications", "", 2, #-- Group 3. key = "item.3.x"
"GenieWidget", "Google News and Weather app", 1, #-- item.3.1 = Selected by default
"GTalk", "Google Talk", 1, #-- item.3.2 = Selected by default

"Themes", "", 2, #-- Group 4. key = "item.4.x"
"Dark theme", "Black and Orange theme", 1, #-- item.4.1 = Selected by default
"ICS theme", "Black and blue theme", 1, #-- item.4.2 = Selected by default
"Miui v4 theme", "White and Orange theme", 1, #-- item.4.3 = Selected by default
"SGII lockscreen", "Samsug Galaxy II lockscreen", 1 #-- item.4.4 = Un-Selected by default

#--------[ 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", "Finish");

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

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

#-- Installation Icon
"@install",

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

##

#---- FINISH