-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the installer + fixed missing uninstall files
- Loading branch information
Showing
2 changed files
with
66 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@rem NSIS Uninstall Header Recursive File List Maker | ||
@rem Copyright 2014 Aleksandr Ivankiv | ||
|
||
@rem Modified for the klystrack installer by Tero Lindeman | ||
|
||
@SET DIR=%~1 | ||
@SET HEADER=%~2 | ||
@IF "%~1" == "/?" goto Help | ||
@IF NOT DEFINED DIR goto Help | ||
@IF NOT DEFINED HEADER SET HEADER=UnFiles.nsh | ||
@IF NOT EXIST "%DIR%" ECHO Cannot find the folder %DIR%. & SET "DIR=" & goto :EOF | ||
|
||
@SetLocal EnableDelayedExpansion | ||
|
||
@FOR /F "tokens=*" %%f IN ('DIR %DIR%\*.* /A:-D /B /S') DO @( | ||
set string=%%f | ||
set string=!string:%CD%\%DIR%=! | ||
echo Delete "$OUTDIR\!string:~1!" >> %HEADER% | ||
) | ||
|
||
@FOR /F "tokens=*" %%d IN ('DIR %DIR%\*.* /A:D /B /S') DO @( | ||
set string=%%d | ||
set string=!string:%CD%\%DIR%=! | ||
echo RMDir "$OUTDIR\!string:~1!" >> %HEADER% | ||
) | ||
|
||
@EndLocal | ||
@goto :EOF | ||
|
||
:Help | ||
@echo. | ||
@echo Usage: UNFILES FolderName [OutFile] | ||
@echo. | ||
@goto :EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters