Skip to content

Commit a1a0033

Browse files
windows: Remove Start menu items
Locations for Start menu items crateted and uninstalled were different, so shortcuts were not uninstalled. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 8535532 commit a1a0033

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

windows-installer/build-installer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ cp ../tars/arcshell.bat .
4848

4949
# Copy OpenOCD
5050
echo "Copying OpenOCD..."
51-
tar xaf ../tars/openocd-ide-*.tgz --strip-components=1
51+
tar xaf ../tars/openocd-*.tar.gz --strip-components=1
5252

5353
# Copy tool chain
5454
echo "Copything toolchain..."
55-
tar xaf ../tars/arc_gnu_*_prebuilt_elf32_windows_install.tgz --strip-components=1
55+
tar xaf ../tars/arc_gnu_*_prebuilt_elf32_windows_install.tar.gz --strip-components=1
5656

5757
# Copy Eclipse
5858
echo "Copying Eclipse..."

windows-installer/setup-base.nsi

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ FunctionEnd
9999
; http://nsis.sourceforge.net/Docs/AppendixG.html (to build yourself)
100100
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\bin"
101101
SetShellVarContext all
102+
CreateShortCut "$DESKTOP\${arctitle} ${arcver} Eclipse.lnk" "$INSTDIR\eclipse\eclipse.exe" "" "$INSTDIR\eclipse\eclipse.exe" 0
102103
CreateDirectory "$SMPROGRAMS\${shelldir}"
103104
CreateShortCut "$SMPROGRAMS\${shelldir}\${arctitle} ${arcver} Command Prompt.lnk" '%comspec%' '/k "$INSTDIR\arcshell.bat"'
104-
CreateShortCut "$DESKTOP\${arctitle} ${arcver} Eclipse.lnk" "$INSTDIR\eclipse\eclipse.exe" "" "$INSTDIR\eclipse\eclipse.exe" 0
105105
CreateShortCut "$SMPROGRAMS\${shelldir}\${arctitle} ${arcver} Eclipse.lnk" "$INSTDIR\eclipse\eclipse.exe" "" "$INSTDIR\eclipse\eclipse.exe" 0
106-
CreateShortCut "$SMPROGRAMS\${shelldir}\Uninstall ${arctitle} ${arcver}.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
106+
CreateShortCut "$SMPROGRAMS\${shelldir}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
107107
CreateShortCut "$SMPROGRAMS\${shelldir}\Documentation.lnk" "$INSTDIR\share\doc" 0
108108
CreateShortCut "$SMPROGRAMS\${shelldir}\IDE Wiki on GitHub.lnk" \
109109
"https://github.com/foss-for-synopsys-dwc-arc-processors/arc_gnu_eclipse/wiki" 0
@@ -117,10 +117,13 @@ FunctionEnd
117117
section "Uninstall"
118118
SetShellVarContext all
119119
Delete "$DESKTOP\${arctitle} ${arcver} Eclipse.lnk"
120-
Delete "$SMPROGRAMS\${arctitle}\${arctitle} ${arcver} Eclipse.lnk"
121-
Delete "$SMPROGRAMS\${arctitle}\${arctitle} ${arcver} Command Prompt.lnk"
122-
Delete "$SMPROGRAMS\${arctitle}\Uninstall ${arctitle} ${arcver}.lnk"
123-
RmDir "$SMPROGRAMS\${arctitle}"
120+
Delete "$SMPROGRAMS\${shelldir}\${arctitle} ${arcver} Command Prompt.lnk"
121+
Delete "$SMPROGRAMS\${shelldir}\${arctitle} ${arcver} Eclipse.lnk"
122+
Delete "$SMPROGRAMS\${shelldir}\Uninstall.lnk"
123+
Delete "$SMPROGRAMS\${shelldir}\Documentation.lnk"
124+
Delete "$SMPROGRAMS\${shelldir}\IDE Wiki on GitHub.lnk"
125+
Delete "$SMPROGRAMS\${shelldir}\IDE Releases on GitHub.lnk"
126+
RmDir "$SMPROGRAMS\${shelldir}"
124127
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\bin"
125128
!include "uninstall_files.nsi"
126129
Delete "$INSTDIR\Uninstall.exe"

0 commit comments

Comments
 (0)