Skip to content

Commit

Permalink
Convert Installer.nsi to UTF-8-BOM
Browse files Browse the repository at this point in the history
Fixes: #45
  • Loading branch information
robertabcd committed Oct 31, 2020
1 parent 5c79638 commit 939464f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Installer.nsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Script generated by the HM NIS Edit Script Wizard.
; Script generated by the HM NIS Edit Script Wizard.
Unicode true
!include LogicLib.nsh
!include x64.nsh
Expand Down Expand Up @@ -134,7 +134,7 @@ Section SEC01
StrCmp $LANGUAGE ${LANG_TRADCHINESE} Chi Eng
Chi:
#this line makes error in utf-8 encoding
CreateShortCut "$SMPROGRAMS\${PRODUCT_DIR}\標點符號輸入程式.lnk" "$INSTDIR\Symbols.exe" "$INSTDIR\Symbols.exe"
CreateShortCut "$SMPROGRAMS\${PRODUCT_DIR}\標點符號輸入程式.lnk" "$INSTDIR\Symbols.exe" "$INSTDIR\Symbols.exe"
Goto +2
Eng:
CreateShortCut "$SMPROGRAMS\${PRODUCT_DIR}\Symbols.lnk" "$INSTDIR\Symbols.exe" "$INSTDIR\Symbols.exe"
Expand Down Expand Up @@ -173,7 +173,7 @@ Function un.onUninstSuccess
HideWindow
StrCmp $LANGUAGE ${LANG_TRADCHINESE} Chi Eng
Chi:
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地從你的電腦移除。"
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地從你的電腦移除。"
Goto +2
Eng:
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) has been removed sucessfully."
Expand All @@ -183,7 +183,7 @@ Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
StrCmp $LANGUAGE ${LANG_TRADCHINESE} Chi Eng
Chi:
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你確定要完全移除 $(^Name) ,其及所有的元件?" IDYES +4
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你確定要完全移除 $(^Name) ,其及所有的元件?" IDYES +4
Abort
Eng:
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
Expand Down

0 comments on commit 939464f

Please sign in to comment.