Skip to content

Commit da50997

Browse files
committed
Merge #8285: windows: Add testnet link to installer
975a41d windows: Add testnet icon for testnet link (Wladimir J. van der Laan) 0ce8e99 windows: Add testnet link to installer (Wladimir J. van der Laan)
2 parents 6a87eb0 + 975a41d commit da50997

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

share/setup.nsi.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Section -post SEC0001
9292
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
9393
CreateDirectory $SMPROGRAMS\$StartMenuGroup
9494
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
95+
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
9596
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
9697
!insertmacro MUI_STARTMENU_WRITE_END
9798
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
@@ -135,6 +136,7 @@ Section -un.post UNSEC0001
135136
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
136137
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk"
137138
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk"
139+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk"
138140
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
139141
Delete /REBOOTOK $INSTDIR\uninstall.exe
140142
Delete /REBOOTOK $INSTDIR\debug.log

src/Makefile.qt.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ RES_ICONS = \
231231
qt/res/icons/about.png \
232232
qt/res/icons/about_qt.png \
233233
qt/res/icons/bitcoin.ico \
234+
qt/res/icons/bitcoin_testnet.ico \
234235
qt/res/icons/bitcoin.png \
235236
qt/res/icons/chevron.png \
236237
qt/res/icons/clock1.png \

src/qt/res/bitcoin-qt-res.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"
2+
IDI_ICON2 ICON DISCARDABLE "icons/bitcoin_testnet.ico"
23

34
#include <windows.h> // needed for VERSIONINFO
45
#include "../../clientversion.h" // holds the needed client version information

src/qt/res/icons/bitcoin_testnet.ico

55.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)