Archive: uninstall version control?


uninstall version control?
Our installer is for upgrading our appliction. when we try to install the uppgrade installer, first of all, we need to delete the old files on the client machines. How can i distinguish the files between old version(on client machine) and new version (in the installer)?
remember to use /R, don't know exactly how to do?

thank you.

James


How about this:

1. Your older installer can write a registry key, with the path.
2. New installer read that path with nsis' ReadRegStr.
3. Call the uninstaller from the returning path, or delete them from the new installer.


ideally,Can I set a flag on a file, then next time, i just delete the files have the flag.? donno how to do....


As I understand you want to delete/upgrade just a bunch of installed files not the entire previous installation.
If I'm wrong and you want to uninstall the entire previous installation, the best way is to do it like NSIS installer does by calling the uninstaller -- see included script NSIS\Examples\makensis.nsi.
To remove/upgrade just some files, could be done by several ways, for instance the easiest way is that you may add version info in registry, so comparing this version with the current version let you know what to do next.
Also you may add version info in all upgradeable files and compare versions for each one individual, or include a text file with all upgradeable files and add the script compilation date as the comparison point.