Skip to content

Commit

Permalink
create windows desktop shortcut during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jadzeidan committed Oct 28, 2024
1 parent ffd4556 commit c4dcc36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added frontends/qt/BitBox-installer.exe
Binary file not shown.
7 changes: 7 additions & 0 deletions frontends/qt/setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SetCompressor /SOLID lzma
!define ICONDIR "resources\win"
!define APP_EXE "BitBox.exe"
!define AOPP_EXE "$\"$INSTDIR\${APP_EXE}$\" $\"%1$\""
!define APP_NAME "BitBoxApp"

# MUI Symbol Definitions
!define MUI_ICON "${ICONDIR}\icon.ico"
Expand Down Expand Up @@ -103,6 +104,12 @@ Section -Main SEC0000
#File /r /x Makefile* @abs_top_srcdir@/doc\*.*
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1

# Explicitly copy the icon file to the installation directory
File "${ICONDIR}\icon.ico"

# Create a shortcut on the desktop
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\icon.ico" 0
SectionEnd

Section -post SEC0001
Expand Down

0 comments on commit c4dcc36

Please sign in to comment.