fixed install(), pre-install() and post-install() functions processing