Hi,
We are trying to use the following expression to make a second copy of a file that has been previously installed by an external installer called from within the setup script we are writing. For some reason
Copy Local Files "$PROGRAMFILES$\\X\\X Y Z\\A\\B.pdf" to $TARGETDIR$\\X\\Y\\B.pdf
doesn't work. However, if we put the equivalent copy expression in a batch file that is called at the end of the installation (for other reasons), it works fine.
Any ideas? We have tried with and without quotes.
Copy Local Files doesn't!
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
All purple commands are executed natively by the Windows Installer engine. They take effect only when Apply Install is called. If you call them after Apply Install, you will need to call Apply Install again - but this will slow down your setup as Windows Installer will be invoked twice.
If the files that you wish to copy locally are being installed by your setup, install them using Install Files. If the files you wish to copy locally are already present, use Copy/Move Local Files - remembering to place before Apply Install. If the files you wish to copy locally are not being installed by your setup but are somehow created after Apply Install, use Call DLL Function with CopyFileA or the MoveFileA Win32 API in kernel32.dll.
One of those suggestions should help you out! Let me know if you still have problems.
If the files that you wish to copy locally are being installed by your setup, install them using Install Files. If the files you wish to copy locally are already present, use Copy/Move Local Files - remembering to place before Apply Install. If the files you wish to copy locally are not being installed by your setup but are somehow created after Apply Install, use Call DLL Function with CopyFileA or the MoveFileA Win32 API in kernel32.dll.
One of those suggestions should help you out! Let me know if you still have problems.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/

