Hello and welcome to Advanced Installer forums,
Yes, this is possible using the
Professional edition of Advanced Installer.
- after asking for installation path it has to check for existing files in installation path.
- If exist, Content of Installation path has to be copied in a subfolder of Installation path.
In order to achieve that you can create your own
custom action which implements this functionality. For example, you can create your custom action as
a custom action written in C# or
a custom action written in C++.
Then you can go in the
“Custom Actions” page and add a predefined
Launch attached file custom action with sequence after the
Paths Resolution standard action from the
Install Execution Stage. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.
Also, in this custom action you should set an
installer property in order to condition the execution of the next custom action:
after this (and existing of the subfolder) it has to call a program(written by us), which will copy the content of the backup database to the installed Database..
- after this (and existing of the subfolder) it has to call a program(written by us), which will copy the content of the backup database to the installed Database.
In order to launch your .exe you can add our predefined
“Custom Actions” page and add a predefined
Launch attached file custom action with sequence after the
Add Resources standard action from the
Install Execution Stage. Please note that you should set this custom action as
deferred (
when the system is being modified(deferred)) and add in its condition field the property which you had set before.
I recommend you testing Advanced Installer in trial mode. During the trial you have access to all the features, without any limits. The setup packages will just include message boxes during the installation, saying they were built with a trial version of Advanced Installer.
Just make sure you create the project type you need, as the features are limited based on the project type.
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