Archive: Patch already installed software?


Patch already installed software?
is there a way to make installers that update already installed software?
Which is basically, overwriting, adding files, altering text files, and adding the information to the uninstaller.


Yes, this is possible in the same way as you create any other installer: You have to script all activities manually. There is no automated "updating" functionality, because NSIS has no way of knowing what an update is supposed to do in your case.

What I do is examine the contents of $INSTDIR, and depending on what files I find I let the installer do something different. If it's a new directory, everything is done from scratch. If it's an existing installation, I only overwrite the files I know have changed.


How to modify the uninstaller?