Post Group: Working Member
Posts: 217
Status:
|
Hi,
Yes you can keep two zips in custom package so the zip with
softname(same as the package name) will be unzipped by default but the
second zip which could be your main.zip so you will have to unzip it in
install.php under function __install(), here is the following code you
have to add:
PHP Code if(!sunzip($software['path'].'/main.zip', $__settings['softpath'], 1)){
$error[] = 'could not decompress';
}
You can also refer the following guide:
http://www.softaculous.com/docs/Making_Custom_Package#Explanation_of_Important_functions
Please let us know if you need any further information.
Edited by Moderator : January 23, 2017, 2:57 pm |