Skip to content

Commit 5fd5d7a

Browse files
committed
stop associating file.ico with Elm files on Windows
Just use the default, which appears to be overridden as soon as you pick an editor to edit the files anyway. Maybe this can be revisited if we have a really excellent .ico file someday.
1 parent 8be664a commit 5fd5d7a

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

installers/win/Nsisfile.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Section "Associate with .elm files" SecAssoc
142142
; File associations
143143
WriteRegStr HKCR ".elm" "" "elm"
144144
WriteRegStr HKCR "elm" "" "Elm Source File"
145-
WriteRegStr HKCR "elm\DefaultIcon" "" "$INSTDIR\file.ico"
145+
;WriteRegStr HKCR "elm\DefaultIcon" "" "$INSTDIR\file.ico"
146146
;WriteRegStr HKCR "elm\shell\open\command" "" '"$INSTDIR\bin\elm.exe" "%1"'
147147

148148
;Remember that we registered associations

installers/win/file.ico

-101 KB
Binary file not shown.

installers/win/inst.dat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ SetOutPath "$INSTDIR\bin"
22
File "${FILES_SOURCE_PATH}\bin\elm.exe"
33

44
SetOutPath "$INSTDIR"
5-
File "file.ico"
65
File "updatepath.vbs"
7-
File "removefrompath.vbs"
6+
File "removefrompath.vbs"

installers/win/uninst.dat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Delete "$INSTDIR\bin\elm.exe"
22
RmDir "$INSTDIR\bin"
33

4-
Delete "$INSTDIR\file.ico"
54
Delete "$INSTDIR\updatepath.vbs"
65
Delete "$INSTDIR\removefrompath.vbs"
7-
RmDir "$INSTDIR"
6+
RmDir "$INSTDIR"

0 commit comments

Comments
 (0)