Skip to content

Commit

Permalink
Don’t create a Tribler subfolder in the Start
Browse files Browse the repository at this point in the history
Install the Tribler shortcut directly into Programs.

Don’t create a shortcut to uninstall Tribler.
  • Loading branch information
da2x authored and kozlovsky committed Aug 24, 2021
1 parent d28eff5 commit cbd15ef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build/win/resources/tribler.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ SectionEnd


Section "Startmenu Icons" SecStart
CreateDirectory "$SMPROGRAMS\${PRODUCT}"
CreateShortCut "$SMPROGRAMS\${PRODUCT}\Uninstall ${PRODUCT}.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$SMPROGRAMS\${PRODUCT}\${PRODUCT}.lnk" "$INSTDIR\${PRODUCT}.exe"
CreateShortCut "$SMPROGRAMS\${PRODUCT}.lnk" "$INSTDIR\${PRODUCT}.exe"
SectionEnd


Expand Down Expand Up @@ -222,8 +220,7 @@ Section "Uninstall"
Delete "$DESKTOP\${PRODUCT}.lnk"

SetShellVarContext all
RMDir "$SMPROGRAMS\${PRODUCT}"
RMDir /r "$SMPROGRAMS\${PRODUCT}"
Delete "$SMPROGRAMS\${PRODUCT}.lnk"

DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${PRODUCT}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}"
Expand Down

0 comments on commit cbd15ef

Please sign in to comment.