Skip to content

Commit 49518a0

Browse files
committed
Fix GitHub Issue #175: Windows installer doesn't add shortcuts
1 parent 819c7a0 commit 49518a0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ New features:
99

1010
Bug fixes:
1111

12+
* Fix GitHub Issue #175: Windows installer doesn't add shortcuts
13+
1214
* Fix image save when original image is missing
15+
1316
* Write images with same id only once
1417

1518
Other:

InstallWindows.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ function(setup_install_targets)
3232
set(CPACK_NSIS_HELP_LINK http://juzzlin.github.io/Heimer/)
3333
set(CPACK_NSIS_URL_INFO_ABOUT http://juzzlin.github.io/Heimer/)
3434

35+
set(CPACK_NSIS_CREATE_ICONS_EXTRA
36+
"CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\${BINARY_NAME}.lnk' '$INSTDIR\\\\${BINARY_NAME}.exe'"
37+
)
38+
39+
set(CPACK_NSIS_DELETE_ICONS_EXTRA
40+
"Delete '$SMPROGRAMS\\\\$START_MENU\\\\${BINARY_NAME}.lnk'"
41+
)
42+
3543
include(CPack)
3644

3745
endfunction()

0 commit comments

Comments
 (0)