diff --git a/build/win/resources/tribler.nsi b/build/win/resources/tribler.nsi index 02f0efb8477..5ea97887ceb 100644 --- a/build/win/resources/tribler.nsi +++ b/build/win/resources/tribler.nsi @@ -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 @@ -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}"