Hi,
I need to copy some config file from the source folder (where .msi package is located) to the destination folder (i want to make custom builds of my program in this way).
This can be done with a Copy/Move file operation in the "Files and Folders" view. Here is how you can do this:
1. Create a property in the "Install Parameters" page, let say MY_PROP.
2. Switch to "Files and Folders" page and add a "New Folder->Property Based" and select the property created at step 1.
3. This folder is not need to be installed, it's used only to have access to the SourceDir property. To delete this folder choose "Remove folder" option in the folder properties dialog.
4. Switch to "Custom Actions" page and add a new "Property Set With Formatted" custom action. In the "Property Name" type MY_PROP, in the "Formatted Text" type [SourceDir]. Use (Not installed) as execution condition.
5. Select the "Application Folder" in the "Files and Folders" page. Add a "New File Operation->File Copy/Move". For the source folder choose MY_PROP. As operation choose "Copy".
Note that if you want that file to be removed on uninstall you need to add a "File Removal" operation for it.
Hope this helps. If you encounter any problems please let me know.
Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com