Skip to content

Commit

Permalink
Modify install.nsi
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Apr 3, 2024
1 parent 8b4904e commit 74140cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions App/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ IF(WIN32)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Resource/image/FaceRecognizer.ico
DESTINATION .
COMPONENT Application)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/Install/Install.nsi
DESTINATION "${CMAKE_BINARY_DIR}"
COMPONENT Application)
# 替换 Install.nsi 中的 CMAKE_INSTALL_PREFIX 等
configure_file(${CMAKE_SOURCE_DIR}/Install/Install.nsi
${CMAKE_BINARY_DIR}/Install.nsi @ONLY)
ENDIF()

if(UNIX AND NOT ANDROID)
Expand Down
6 changes: 3 additions & 3 deletions Install/Install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ SetCompressor lzma

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "install\FaceRecognizer.ico"
!define MUI_UNICON "install\FaceRecognizer.ico"
!define MUI_ICON "@CMAKE_INSTALL_PREFIX@\FaceRecognizer.ico"
!define MUI_UNICON "@CMAKE_INSTALL_PREFIX@\FaceRecognizer.ico"

; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
Expand All @@ -33,7 +33,7 @@ SetCompressor lzma
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "install\share\doc\FaceRecognizer\License.md"
!insertmacro MUI_PAGE_LICENSE "@CMAKE_INSTALL_PREFIX@\share\doc\FaceRecognizer\License.md"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
Expand Down

0 comments on commit 74140cc

Please sign in to comment.