stevehiner
Posts: 9
Joined: Fri Jan 07, 2005 6:42 pm
Contact: Website

Rename an old file on install and rename back on uninstall?

I'm using Advanced Installer to create an update to an existing installation. I'm replacing just a few files during the install and I'd like to keep the old files around.

How do I rename or move the old files on install?

Likewise, how do I rename them back on uninstall?

I'd like the users to be able to uninstall my update and be back where they started. As it is right now they can't run the program at all if they uninstall the update.

I suspect it's done with custom actions or something but I don't know much about custom actions so if that's the case please give me more details.

Thanks for any help you can provide.

Steve
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Yes, Custom Actions are the solution. They are regular exe programs written in C or C++ and run as a part of the installation. You can do anything you want inside, including what you need.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”