Skip to content

Commit 0ce8e99

Browse files
committed
windows: Add testnet link to installer
1 parent 6a87eb0 commit 0ce8e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-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"
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

0 commit comments

Comments
 (0)