I am creating a custom installer program which will do the following tasks. 1. backup the existing files into a backup folder. 2 . update the application

I tried using the custom actions and implemented the backup function under onbeforeInstall of the Installer class. However its not working.

How can I implement backup function before installing.?

Thanks in advance