Skip to content

Commit

Permalink
fix: display product names with an & properly (#7831)
Browse files Browse the repository at this point in the history
  • Loading branch information
vespasianvs authored Oct 19, 2023
1 parent 549d07b commit 6e41480
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-parents-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix(nsis): display product names with an `&` properly
6 changes: 5 additions & 1 deletion packages/app-builder-lib/templates/nsis/common.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ ShowInstDetails nevershow
ShowUninstDetails nevershow
!endif
FileBufSize 64
Name "${PRODUCT_NAME}"

# Allows for a product name to display properly if it has an ampersand
# Doesn't affect anything if there is no double ampersand
!searchreplace DoubleAmpersand "${PRODUCT_NAME}" "&" "&&"
Name "${PRODUCT_NAME}" "${DoubleAmpersand}"

!define APP_EXECUTABLE_FILENAME "${PRODUCT_FILENAME}.exe"
!define UNINSTALL_FILENAME "Uninstall ${PRODUCT_FILENAME}.exe"
Expand Down

0 comments on commit 6e41480

Please sign in to comment.