From 85b5654d146299a900bec568e078e84e1a88678d Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 30 Jan 2015 16:17:04 +1100 Subject: [PATCH] The uninstaller is now more secure, it will not delete recursively the install directory anymore, instead only delete subdirs recursively, and then delete individual files and finally the install directory non recursively. --- src/windows_installer/supertuxkart.nsi | 30 ++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/windows_installer/supertuxkart.nsi b/src/windows_installer/supertuxkart.nsi index 97102628f..7530cde5f 100644 --- a/src/windows_installer/supertuxkart.nsi +++ b/src/windows_installer/supertuxkart.nsi @@ -162,9 +162,35 @@ SectionEnd Section "Uninstall"redist ;Removes all the supertuxkart data files - RMDir /r /REBOOTOK $INSTDIR + RMDir /r /REBOOTOK $INSTDIR\data + RMDir /r /REBOOTOK $INSTDIR\Prerequisites - Delete "$INSTDIR\Uninstall.exe" + DELETE /REBOOTOK "$INSTDIR\glew32.dll" + DELETE /REBOOTOK "$INSTDIR\install.ico" + DELETE /REBOOTOK "$INSTDIR\Irrlicht.dll" + DELETE /REBOOTOK "$INSTDIR\libcurl.dll" + DELETE /REBOOTOK "$INSTDIR\libeay32.dll" + DELETE /REBOOTOK "$INSTDIR\libidn-11.dll" + DELETE /REBOOTOK "$INSTDIR\License.txt" + DELETE /REBOOTOK "$INSTDIR\ogg.dll" + DELETE /REBOOTOK "$INSTDIR\OpenAL32.dll" + DELETE /REBOOTOK "$INSTDIR\physfs.dll" + DELETE /REBOOTOK "$INSTDIR\pthreadVC2.dll" + DELETE /REBOOTOK "$INSTDIR\ssleay32.dll" + DELETE /REBOOTOK "$INSTDIR\supertuxkart.exe" + DELETE /REBOOTOK "$INSTDIR\supertuxkart.ico" + DELETE /REBOOTOK "$INSTDIR\supertuxkart.icon" + DELETE /REBOOTOK "$INSTDIR\supertuxkart.ilk" + DELETE /REBOOTOK "$INSTDIR\supertuxkart.pdb" + DELETE /REBOOTOK "$INSTDIR\supertuxkart_editor.exe" + DELETE /REBOOTOK "$INSTDIR\supertuxkart_editor.ico" + DELETE /REBOOTOK "$INSTDIR\supertuxkart_editor.pdb" + DELETE /REBOOTOK "$INSTDIR\uninstall.ico" + DELETE /REBOOTOK "$INSTDIR\vorbis.dll" + DELETE /REBOOTOK "$INSTDIR\zlib.dll" + DELETE /REBOOTOK "$INSTDIR\zlib1.dll" + + Delete /REBOOTOK "$INSTDIR\Uninstall.exe" RMDir "$INSTDIR" SetShellVarContext all