Hi Eric and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
To search if a folder exists, you can create a search operation in the
Search view. Use the [ New Search Wizard ] toolbar button, to set up a new search, following step-by-step directions.
To backup the existing folder, you will need to create a custom action. For example, you can create your custom action as
a custom action written in C# or
a custom action written in C++. Please take a look on the
How to integrate and debug custom actions? article which may be useful to you.
If you will use the DTC C# approach, then you can take advantage of the
Directory.Exists Method.
You can also use the
Robocopy CMD to copy a folder. For example, you can use something like this:
Code: Select all
ROBOCOPY <source_folder> <destination_folder> /E
To launch a .bat file, please follow the steps from the
How to launch a CMD or BAT file? article.
You can also take a look on the
"How to backup and restore files/folders in APPDIR?" thread which debates a similar issue.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging