goldendict-ng/nsis/makensis.sh
Konstantin Isakov 992dbee676 Correctly uninstall only installed files, preserving any user content.
To use, makensis.sh script must be used instead of makensis command.
2010-12-04 18:27:14 +03:00

15 lines
265 B
Bash
Executable file

#!/bin/bash
if [ $# != 1 ]; then
echo Usage: $0 infile.nsi
exit 1
fi
echo > uninst.nsh || exit 1
( makensis "-XSetCompress off" "$1" | tee log; exit ${PIPESTATUS[0]} ) || exit 1
./gen_uninstall/gen_uninstall < log > uninst.nsh || exit 1
exec makensis "$1"