aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-06-05 10:45:20 +0100
committerJoão Valverde <j@v6e.pt>2023-06-05 10:59:11 +0100
commit6aa0490fdca95acc0a913f9fc2bfdce39f919f9f (patch)
tree7fdd27e5276e749291b8f0cc68612cd72ffd354b /packaging/nsis
parent9195d6348278524da7e4d20c9ca0f24bc826e2e2 (diff)
CMake+NSIS: Allow building an unsigned installer
Diffstat (limited to 'packaging/nsis')
-rw-r--r--packaging/nsis/wireshark-config.nsh.in2
-rw-r--r--packaging/nsis/wireshark.nsi2
2 files changed, 4 insertions, 0 deletions
diff --git a/packaging/nsis/wireshark-config.nsh.in b/packaging/nsis/wireshark-config.nsh.in
index 702ef53f8b..ace70b9520 100644
--- a/packaging/nsis/wireshark-config.nsh.in
+++ b/packaging/nsis/wireshark-config.nsh.in
@@ -35,3 +35,5 @@
#cmakedefine SMI_DIR "@SMI_DIR@"
#cmakedefine QT_DIR "@QT_DIR@"
+
+#cmakedefine ENABLE_SIGNED_NSIS
diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi
index 9d6fe77f67..9e2d29b746 100644
--- a/packaging/nsis/wireshark.nsi
+++ b/packaging/nsis/wireshark.nsi
@@ -1545,8 +1545,10 @@ NoFinalErrorMsg:
SectionEnd
; Sign our installer and uninstaller during compilation.
+!ifdef ENABLE_SIGNED_NSIS
!finalize 'sign-wireshark.bat "%1"' = 0 ; %1 is replaced by the installer exe to be signed.
!uninstfinalize 'sign-wireshark.bat "%1"' = 0 ; %1 is replaced by the uninstaller exe to be signed.
+!endif
; ============================================================================
; PLEASE MAKE SURE, THAT THE DESCRIPTIVE TEXT FITS INTO THE DESCRIPTION FIELD!