From: Uwe Hermann Date: Wed, 1 Jan 2014 19:06:24 +0000 (+0100) Subject: nsis: Also put firmware files into the installer. X-Git-Tag: pulseview-0.2.0~167 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=d8823c8cc5eb8539ec4dc087539f531fea421429;hp=f4097c595629a6b189373eb1e1957f55c345779c nsis: Also put firmware files into the installer. --- diff --git a/contrib/pulseview_cross.nsi b/contrib/pulseview_cross.nsi index 1d1b0f1a..d59b4787 100644 --- a/contrib/pulseview_cross.nsi +++ b/contrib/pulseview_cross.nsi @@ -140,6 +140,12 @@ Section "PulseView (required)" Section1 # Protocol decoders. File /r /x "__pycache__" "${CROSS}/share/libsigrokdecode/decoders/*" + # Install the file(s) specified below into the specified directory. + SetOutPath "$INSTDIR\firmware" + + # Firmware files. + File /r "${CROSS}/share/sigrok-firmware/*" + # Generate the uninstaller executable. WriteUninstaller "$INSTDIR\Uninstall.exe" @@ -216,8 +222,12 @@ Section "Uninstall" # There could be *.pyc files or __pycache__ subdirs and so on. RMDir /r "$INSTDIR\decoders\*" + # Delete the firmware files. + File /r "$INSTDIR\firmware\*" + # Delete the install directory and its sub-directories. RMDir "$INSTDIR\decoders" + RMDir "$INSTDIR\firmware" RMDir "$INSTDIR" # Delete the links from the start menu.