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
without 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.
You need to execute this custom action on the
Next > control from the
FolderDlg as a
Published Events. Please take a look on the
How do I execute a custom action when a button is pushed? article with related information for hints and guidance.
In order to determine if a directory exists, you can use the
Directory.Exists() method.
Please let me know if that helped.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging