From what I can see in your setup project, on your custom action “LaunchFile” properties, you didn’t configure the command line option as described. You are missing the quotes for the path variables. Your command line should be:
Code: Select all
"[addon_1_Dir]" "[addon_Dir]" "[maindata_1_Dir]" "[maindata_Dir]"
Note that for the .bat script, in the “xcopy” the first parameter is the Source and the second parameter is the Destination.
Now your .bat script will look like this:
Meaning you copy from the first parameter “addon_1_Dir” to the second one “addon_Dir”.
You can read about xcopy commands here: Xcopy Command
I attached you here a sample .aip project that uses powershell script to copy the related files.
Hope this helps! If you have any other questions, please don't hesitate to contact us.