Overwrite
(number) Whether to overwrite a file in the destination folder if it has the same name as the file being installed:
CONSTANT |
VALUE DESCRIPTION |
|||
FILE_INSTALL_SAMEOLDER |
0 |
Only overwrite the existing file if it's older than the file being installed, or if both files are the same age. (Default) |
||
FILE_INSTALL_OLDER |
1 |
Only overwrite the existing file if it's older than the file being installed. |
||
FILE_INSTALL_ALWAYS |
2 |
Always install the file, even if the existing file is newer. |
||
FILE_INSTALL_NEVER |
3 |
Never install the file, even if the existing file is older. |
||
FILE_INSTALL_ASK |
4 |
Ask the user if the existing file should be overwritten. |
||
FILE_INSTALL_CALLBACK |
6 |
Call the OverwriteCallbackFunction to handle the overwriting of the file in a custom way. |
||
Warning: It is generally not a good idea to choose FILE_INSTALL_ALWAYS unless you are certain that this is what you want to do. Also, do not choose FILE_INSTALL_ASK unless you are |
confident that the user will have the knowledge to make such a decision. FILE_INSTALL_SAMEOLDER is generally the safest choice.