New nsi and nsh file type icons

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6640 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-11-23 10:36:58 +00:00
parent 9d883f98d8
commit 3452e3b9b2
8 changed files with 8 additions and 4 deletions

View file

@ -197,6 +197,7 @@ Version History
2.3.3 2.3.3
- Update check switched from JNetLib to WinInet - Update check switched from JNetLib to WinInet
- New file type icons
Copyright Information Copyright Information

View file

@ -13,8 +13,9 @@ res = Split("""
""") """)
resources = Split(""" resources = Split("""
shell.ico
icon.ico icon.ico
assoc_nsi.ico
assoc_nsh.ico
makensisw.xml makensisw.xml
logo.bmp logo.bmp
toolbar.bmp toolbar.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -32,7 +32,8 @@
#define DLG_ABOUT 103 #define DLG_ABOUT 103
#define IDM_MENU 104 #define IDM_MENU 104
#define IDK_ACCEL 105 #define IDK_ACCEL 105
#define IDI_SHELL 112 #define IDI_ASSOC_NSI 112
#define IDI_ASSOC_NSH 113
#define IDB_LOGO 115 #define IDB_LOGO 115
#define DLG_SETTINGS 116 #define DLG_SETTINGS 116
#define IDB_BITMAP1 120 #define IDB_BITMAP1 120

View file

@ -55,7 +55,8 @@ END
// Icon with lowest ID value placed first to ensure application icon // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems. // remains consistent on all systems.
IDI_ICON ICON "icon.ico" IDI_ICON ICON "icon.ico"
IDI_SHELL ICON "shell.ico" IDI_ASSOC_NSI ICON "assoc_nsi.ico"
IDI_ASSOC_NSH ICON "assoc_nsh.ico"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View file

@ -264,7 +264,7 @@ ${MementoSection} "NSIS Core Files (required)" SecCore
WriteRegStr HKCR ".nsh" "" "NSIS.Header" WriteRegStr HKCR ".nsh" "" "NSIS.Header"
WriteRegStr HKCR ".nsh" "PerceivedType" "text" WriteRegStr HKCR ".nsh" "PerceivedType" "text"
WriteRegStr HKCR "NSIS.Header" "" "NSIS Header File" WriteRegStr HKCR "NSIS.Header" "" "NSIS Header File"
WriteRegStr HKCR "NSIS.Header\DefaultIcon" "" "$INSTDIR\makensisw.exe,1" WriteRegStr HKCR "NSIS.Header\DefaultIcon" "" "$INSTDIR\makensisw.exe,2"
ReadRegStr $R0 HKCR "NSIS.Header\shell\open\command" "" ReadRegStr $R0 HKCR "NSIS.Header\shell\open\command" ""
${If} $R0 == "" ${If} $R0 == ""
WriteRegStr HKCR "NSIS.Header\shell" "" "open" WriteRegStr HKCR "NSIS.Header\shell" "" "open"