[Android Q&A, Help & Troubleshooting] mackief:
I've created an update.zip, but something is wrong, cause when i flash it, this is the output:

--Install from sdcard...
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/update.zip
(Status 6)
Installation aborted.

But i cant understand where is the mistake in the script. This is my UPDATER-SCRIPT:

ui_print("|------------------------------|");
ui_print("| 10% Update Started |");
ui_print("| 20% Mounting "/system" |");
ui_print("| 30% Mounting "/cache" |");
ui_print("| 40% Mounting "/data" |");
ui_print("| 50% Mounting "/sdcard" |");
mount("MTD", "system", "/system");
mount("MTD", "cache", "/cache");
mount("MTD", "userdata", "/data");
mount("MTD", "sdcard", "/sdcard");mount("MTD", "system", "/system");
mount("MTD", "cache", "/cache");
mount("MTD", "userdata", "/data");
mount("MTD", "sdcard", "/sdcard");
ifelse
(
is_mounted("/data") == "/data",
ui_print(" Mount ok"),
(
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
)
);

ui_print("| 60% Removing Applications |");
delete("/system/app/Music.apk");
delete("/system/app/DSPManager.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/MusicFX.apk");
delete("/system/app/SpareParts.apk");
delete("/system/app/Talk.apk");
delete("/system/app/GalaxyICS-FileManager.apk");
delete("/system/app/QuickSearchBox.apk");

ui_print("| 70% Installing Applications |");
package_extract_dir("data", "/data");

set_perm(1000, 1000, 0644, "/data/app/Facebook.apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/com.facebook.katana");
delete("/data/dalvik-cache/data@app@Facebook.apk@classes.dex");
ui_print("|	*Facebook |");

set_perm(1000, 1000, 0644, "/data/app/FileManager.apk");
delete("/data/dalvik-cache/data@app@FileManager.apk@classes.dex");
ui_print("|	*Root Explorer |");

set_perm(1000, 1000, 0644, "/data/app/Flash-10.2.apk");
delete("/data/dalvik-cache/data@app@Flash-10.2.apk@classes.dex");
ui_print("|	*Adobe Flash |");

set_perm(1000, 1000, 0644, "/data/app/Gameboid.apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/com.androidemu.gba");
delete("/data/dalvik-cache/data@app@Gameboid.apk@classes.dex");
ui_print("|	*Gameboy Emulator |");

set_perm(1000, 1000, 0644, "/data/app/Memo.apk");
delete("/data/dalvik-cache/data@app@Memo.apk@classes.dex");
ui_print("|	*InkPad |");

set_perm(1000, 1000, 0644, "/data/app/MoveTheBox.apk");
delete("/data/dalvik-cache/data@app@MoveTheBox.apk@classes.dex");
ui_print("|	*MoveTheBox Game |");

set_perm(1000, 1000, 0644, "/data/app/Music.apk");
delete("/data/dalvik-cache/data@app@Music.apk@classes.dex");
ui_print("|	*Music Player |");

set_perm(1000, 1000, 0644, "/data/app/Whatsapp.apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/com.whatsapp");
delete("/data/dalvik-cache/data@app@Whatsapp.apk@classes.dex");
ui_print("|	*Whatsapp |");

set_perm(1000, 1000, 0644, "/data/app/Wpatester.apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/tester.wpa");
delete("/data/dalvik-cache/data@app@Wpatester.apk@classes.dex");
ui_print("|	*WPA Tester |");

ui_print("| 80% Removing Dalvik-Cache |");
ui_print("| 90% Unmounting filesystem |");
unmount("/sdcard");
unmount("/data");
unmount("/cache");
unmount("/system");
ifelse
(
is_mounted("/data") == "/data",
(
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/sdcard");
)
);

ui_print("| 100% Installation completed |");