Hi,
This can be done by using a File Copy/Move operation in the "Files and Folders" page.
First, you create a property in the "Install Parameters" page (for example the property DIR with the value C:\). You use this property in the "Files and Folders" page to create a property-based folder.
Here is an example for the file operation:
Source File
Name: test.txt
Folder: DIR
Destination file
Name: test.txt
Folder: APPDIR (you create the file operation in Application Folder)
Properties
Component: < a component which will be installed >
Operation: Copy
You can read more about the File Copy/Move operation here:
http://www.advancedinstaller.com/user-g ... ialog.html
Now, you need to set the path of the DIR folder to the path you need. For this, you create a "Property set with formatted" custom action under the "InstallUISequence" -> "CostInitialize" standard action:
Property Name: DIR
Formatted Text: [TempFolder]myprog
TempFolder will be resolved at runtime to the "C:\Documents and Settings\[%UserName%]\Local Settings\Temp\" folder.
The file operation will copy the file "test.txt" from the "C:\Documents and Settings\[%UserName%]\Local Settings\Temp\my prog" folder to the installation folder.
If you need to register it you can use a custom action scheduled on "InstallFinalize".
You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging