Hi,
There are some of our custom files which are placed in the Files and folders\Application Folder. These files are the ones I have to handle for copying them after the installation of the supporting program.
Please tell me where you need to copy those files after installation and why?
Basically you can do this with a VBS custom action like this:
1. Create a vbs file with this code:
Code: Select all
Set fso = CreateObject("Scripting.FileSystemObject")
strPath = Session.Property("APPDIR")+"*.*"
' copy folder
fso.CopyFile strPath, "D:\MyFolder\", TRUE
2. Switch to "Custom Actions" page and add "New Attached Custom Action" under the "InstallFinalize" standard action (make "InstallFinalize" visible by right clicking on "InstallExecuteSequance" and choose "Show Standard Action->Before Finalization->InstallFinalize").
3. Use following options for the CA:
3.1 Function Name: empty
3.2 Execution Condition: Not Installed
Note that i schedule the CA under the "InstallFinalize" (the CA will be executed at the end of the installation) because under the "Commit" section the "APPDIR" property can not be accessed.
Hope this help.
Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com