Hello and welcome to Advanced Installer forums,
In order to achieve that you can create your own
custom action which implements this functionality, to search if the related folder already exist on the target machine. 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. 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.
Please make sure that you scheduled this custom action before the
RemoveFiles standard actions. The standard actions used by Advanced Installer can be revealed using the
Show Standard Action button on the toolbar of the
Custom Actions page. Also, this custom action should be executed on the
uninstall stage.
You can also take a look on the
How do I prevent a file or registry entry from being uninstalled or repaired? article which may be useful to you.
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