Uninstall from NSIS log: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
Darthvader (talk | contribs) No edit summary |
|||
Line 3: | Line 3: | ||
==Uninstallation of files from log== | ==Uninstallation of files from log== | ||
This script is meant for people who use the NSIS special builds which log | This script is meant for people who use the [http://nsis.sourceforge.net/Special_Builds NSIS special builds] which log everything during Installation and saves the log in $INSTDIR. Download this file which contains the functions to be called during uninstallation | ||
Unzip uninstallfromlog.nsh and Include it in the main script | Unzip uninstallfromlog.nsh and Include it in the main script |
Revision as of 10:54, 27 June 2007
Author: darthvader (talk, contrib) |
Uninstallation of files from log
This script is meant for people who use the NSIS special builds which log everything during Installation and saves the log in $INSTDIR. Download this file which contains the functions to be called during uninstallation
Unzip uninstallfromlog.nsh and Include it in the main script uninstallfromlog.zip (1 KB)
Install Section:
During Installation have the LogSet commands to log the files being copied.
For e.g
Logset On .... File .... LogSet Off
Uninstall Section:
Have the following in the Uninstall Section.
Section Uninstall .... Call un.CreateLogFromFile Call un.RemoveDirectoriesFromLog .... SectionEnd
Link to the Winamp.com Forums Uninstall from log
Hope this script helps. Any suggestions, modifications are welcome
Thanks to all the people who wrote StrLoc, Reversal of File functions