User modifies a program file and then updates

What happens if a user modifies a file included in the original install and then updates?

Situation 11 - Program is installed (v1.0) this includes file X.2 - User modifies file X.3 - Update to v1.1 released, an update to file X is included in patch.* What happens to the user changed file X?

Situation 21 - Program is installed (v1.0) this includes file X.2 - User modifies file X (part of the install).3 - Update to v1.1 released, file X has not changed in update.* Does wyUpdate detect a change to file X?* Does wyUpdate redownload the last patch to include file X?

Situation 11 - Program is installed (v1.0) this includes file X.2 - User modifies file X.3 - Update to v1.1 released, an update to file X is included in patch.* What happens to the user changed file X?

wyUpdate detects the changed file and downloads the catch-all update.

Situation 21 - Program is installed (v1.0) this includes file X.2 - User modifies file X (part of the install).3 - Update to v1.1 released, file X has not changed in update.* Does wyUpdate detect a change to file X?* Does wyUpdate redownload the last patch to include file X?

If file X is not changed in the update, then wyUpdate blissfully ignores the file (whether it was changed by the user or not).

May I ask when your users is changing these files? Are they changing config files? What behavior do you expect?

My program includes data files (constants, more or less) that is tempting for users to edit, but most will not. I was curious how wyUpdate would handle them. They're not config files.

wyUpdate detects the changed file and downloads the catch-all update.

Do you simply mean that it would download the 1.0 to 1.1 patch and then overwrite the file?

Or would wyUpdate realize that the file had been changed (therefore it would be unable to patch) so it would need to re-download the 1.0 everything file?

Or would wyUpdate realize that the file had been changed (therefore it would be unable to patch) so it would need to re-download the 1.0 everything file?

It would try to patch to your 1.1, it would fail, and then it would download & install the catch-all 1.1 update file. The catch-all update file is larger because it doesn't contain patches at all - it only contains full files.

It's all clear now. Thank you.