We have a custom application page "custom.aspx" on the Layout folder, would like to rename the original file "custom.aspx" to "custom_bak.aspx" before the updated/modified custom application page "custom.aspx" is placed on the same location while activating a custom feature.
any clue? how would I achieve it?