##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
# Request admin privileges for Windows Vista and Windows 7.
# http://nsis.sourceforge.net/Docs/Chapter4.html
# Request admin privileges for Windows Vista and Windows 7.
# http://nsis.sourceforge.net/Docs/Chapter4.html
# --- Default section ---------------------------------------------------------
Section "@PACKAGE_NAME@ (required)" Section1
# --- Default section ---------------------------------------------------------
Section "@PACKAGE_NAME@ (required)" Section1
WriteRegDWORD HKLM "${REGSTR}" "NoRepair" 1
# TODO: Add sigrok-cli directory to the PATH env. variable.
WriteRegDWORD HKLM "${REGSTR}" "NoRepair" 1
# TODO: Add sigrok-cli directory to the PATH env. variable.
# Always delete the uninstaller first (yes, this really works).
Delete "$INSTDIR\Uninstall.exe"
# Always delete the uninstaller first (yes, this really works).
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\zadig_xp.exe"
Delete "$INSTDIR\python34.dll"
Delete "$INSTDIR\python34.zip"
Delete "$INSTDIR\zadig_xp.exe"
Delete "$INSTDIR\python34.dll"
Delete "$INSTDIR\python34.zip"
# Delete all decoders and everything else in libsigrokdecode/.
# There could be *.pyc files or __pycache__ subdirs and so on.
# Delete all decoders and everything else in libsigrokdecode/.
# There could be *.pyc files or __pycache__ subdirs and so on.