@@ -7,11 +7,11 @@ Unicode True
7
7
8
8
; VERSION is defined through a command line argument to the maker
9
9
; for example:
10
- ; makensis.exe /DVERSION=9.0 emulsion .nsi
10
+ ; makensis.exe /DVERSION=9.0 alloy .nsi
11
11
12
- !define PROGRAM_NAME " Emulsion "
13
- !define REG_PROG_PATH " SOFTWARE\Emulsion "
14
- !define REG_UNINST_PATH " Software\Microsoft\Windows\CurrentVersion\Uninstall\Emulsion "
12
+ !define PROGRAM_NAME " Alloy "
13
+ !define REG_PROG_PATH " SOFTWARE\Alloy "
14
+ !define REG_UNINST_PATH " Software\Microsoft\Windows\CurrentVersion\Uninstall\Alloy "
15
15
!define MULTIUSER_INSTALLMODE_INSTDIR " ${PROGRAM_NAME}"
16
16
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY " ${REG_PROG_PATH}"
17
17
!define MULTIUSER_EXECUTIONLEVEL Highest
@@ -31,11 +31,11 @@ Unicode True
31
31
; General
32
32
33
33
; Name and file
34
- Name " Emulsion "
35
- OutFile " Emulsion -Installer.exe"
34
+ Name " Alloy "
35
+ OutFile " Alloy -Installer.exe"
36
36
37
37
; Default installation folder
38
- ; InstallDir "$LOCALAPPDATA\Emulsion "
38
+ ; InstallDir "$LOCALAPPDATA\Alloy "
39
39
40
40
; Get installation folder from registry if available
41
41
; InstallDirRegKey SHCTX "${REG_PROG_PATH}" ""
@@ -48,7 +48,7 @@ Unicode True
48
48
; Interface Settings
49
49
50
50
!define MUI_ABORTWARNING
51
- !define MUI_ICON " emulsion .ico"
51
+ !define MUI_ICON " alloy .ico"
52
52
!define MUI_HEADERIMAGE
53
53
; !define MUI_HEADERIMAGE_BITMAP
54
54
!define MUI_HEADERIMAGE_BITMAP " empty.bmp"
@@ -86,7 +86,7 @@ Function un.onInit
86
86
FunctionEnd
87
87
88
88
89
- !macro EmulsionRegisterExtension ExtensionName Description
89
+ !macro AlloyRegisterExtension ExtensionName Description
90
90
; First, let's create the ProgID for the extension
91
91
; For more information about what is being done here, see
92
92
; "Default Programs"
@@ -99,14 +99,14 @@ FunctionEnd
99
99
WriteRegStr SHCTX " ${REG_PROG_PATH}\Capabilities\FileAssociations" " .${ExtensionName}" " ${GENERIC_PROG_ID}"
100
100
!macroend
101
101
102
- ; !macro EmulsionUnregisterExtension ExtensionName Description
102
+ ; !macro AlloyUnregisterExtension ExtensionName Description
103
103
; ${UnRegisterExtension} ".${ExtensionName}" "${Description}"
104
104
; !macroend
105
105
106
106
; --------------------------------
107
107
; Installer Sections
108
108
109
- Section " Emulsion " SecEmulsion
109
+ Section " Alloy " SecAlloy
110
110
SectionIn RO
111
111
112
112
SetOutPath " $INSTDIR"
@@ -123,34 +123,34 @@ Section "Emulsion" SecEmulsion
123
123
WriteRegStr SHCTX " ${REG_PROG_PATH}" " Install Directory" " $INSTDIR"
124
124
125
125
WriteRegStr SHCTX " ${REG_UNINST_PATH}" " DisplayName" " ${PROGRAM_NAME}"
126
- WriteRegStr SHCTX " ${REG_UNINST_PATH}" " DisplayIcon" " $\" $INSTDIR\emulsion .exe$\" "
126
+ WriteRegStr SHCTX " ${REG_UNINST_PATH}" " DisplayIcon" " $\" $INSTDIR\alloy .exe$\" "
127
127
WriteRegStr SHCTX " ${REG_UNINST_PATH}" " UninstallString" " $\" $INSTDIR\Uninstall.exe$\" /$MultiUser.InstallMode"
128
128
WriteRegStr SHCTX " ${REG_UNINST_PATH}" " QuietUninstallString" " $\" $INSTDIR\Uninstall.exe$\" /$MultiUser.InstallMode /S"
129
129
130
130
; Create uninstaller
131
131
WriteUninstaller " $INSTDIR\Uninstall.exe"
132
132
133
133
; Program description and list of supported extensions
134
- ; (This in itself does not associate the extensions to Emulsion )
134
+ ; (This in itself does not associate the extensions to Alloy )
135
135
WriteRegStr SHCTX " ${REG_PROG_PATH}\Capabilities" " ApplicationDescription" " A fast and minimalistic image viewer"
136
136
WriteRegStr SHCTX " ${REG_PROG_PATH}\Capabilities" " ApplicationName" " ${PROGRAM_NAME}"
137
137
138
- !insertmacro EmulsionRegisterExtension " jpg" " JPG Image"
139
- !insertmacro EmulsionRegisterExtension " jpeg" " JPEG Image"
140
- !insertmacro EmulsionRegisterExtension " png" " PNG Image"
141
- !insertmacro EmulsionRegisterExtension " bmp" " BMP Image"
142
- !insertmacro EmulsionRegisterExtension " gif" " GIF Image"
143
- !insertmacro EmulsionRegisterExtension " tga" " TGA Image"
144
- !insertmacro EmulsionRegisterExtension " avif" " AVIF Image"
145
- !insertmacro EmulsionRegisterExtension " webp" " WEBP Image"
146
- !insertmacro EmulsionRegisterExtension " tif" " TIF Image"
147
- !insertmacro EmulsionRegisterExtension " tiff" " TIFF Image"
148
- !insertmacro EmulsionRegisterExtension " ico" " ICO Image"
149
- !insertmacro EmulsionRegisterExtension " hdr" " HDR Image"
150
- !insertmacro EmulsionRegisterExtension " pbm" " PBM Image"
151
- !insertmacro EmulsionRegisterExtension " pam" " PAM Image"
152
- !insertmacro EmulsionRegisterExtension " ppm" " PPM Image"
153
- !insertmacro EmulsionRegisterExtension " pgm" " PGM Image"
138
+ !insertmacro AlloyRegisterExtension " jpg" " JPG Image"
139
+ !insertmacro AlloyRegisterExtension " jpeg" " JPEG Image"
140
+ !insertmacro AlloyRegisterExtension " png" " PNG Image"
141
+ !insertmacro AlloyRegisterExtension " bmp" " BMP Image"
142
+ !insertmacro AlloyRegisterExtension " gif" " GIF Image"
143
+ !insertmacro AlloyRegisterExtension " tga" " TGA Image"
144
+ !insertmacro AlloyRegisterExtension " avif" " AVIF Image"
145
+ !insertmacro AlloyRegisterExtension " webp" " WEBP Image"
146
+ !insertmacro AlloyRegisterExtension " tif" " TIF Image"
147
+ !insertmacro AlloyRegisterExtension " tiff" " TIFF Image"
148
+ !insertmacro AlloyRegisterExtension " ico" " ICO Image"
149
+ !insertmacro AlloyRegisterExtension " hdr" " HDR Image"
150
+ !insertmacro AlloyRegisterExtension " pbm" " PBM Image"
151
+ !insertmacro AlloyRegisterExtension " pam" " PAM Image"
152
+ !insertmacro AlloyRegisterExtension " ppm" " PPM Image"
153
+ !insertmacro AlloyRegisterExtension " pgm" " PGM Image"
154
154
155
155
WriteRegStr SHCTX " SOFTWARE\RegisteredApplications" " ArturK.${PROGRAM_NAME}.${VERSION}" " ${REG_PROG_PATH}\Capabilities"
156
156
@@ -159,7 +159,7 @@ Section "Emulsion" SecEmulsion
159
159
!insertmacro UPDATEFILEASSOC
160
160
SectionEnd
161
161
162
- ; These are the programs that are needed by Emulsion .
162
+ ; These are the programs that are needed by Alloy .
163
163
Section -Prerequisites
164
164
IfFileExists $SYSDIR \vcruntime140.dll endVsRedist beginVsRedist
165
165
Goto endVsRedist
@@ -173,8 +173,8 @@ SectionEnd
173
173
; --------------------------------
174
174
; Descriptions
175
175
; Language strings
176
- LangString DESC_SecEmulsion ${LANG_ENGLISH} " The program itself."
177
- ; LangString DESC_SecAssociate ${LANG_ENGLISH} "Associate jpg, jpeg, png, bmp, gif, tga, avif, webp, tif, tiff, hdr, pbm, pam, ppm, and pgm files with Emulsion "
176
+ LangString DESC_SecAlloy ${LANG_ENGLISH} " The program itself."
177
+ ; LangString DESC_SecAssociate ${LANG_ENGLISH} "Associate jpg, jpeg, png, bmp, gif, tga, avif, webp, tif, tiff, hdr, pbm, pam, ppm, and pgm files with Alloy "
178
178
179
179
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
180
180
; These are only relevant when using the MUI_PAGE_COMPONENTS
@@ -183,7 +183,7 @@ SectionEnd
183
183
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
184
184
; Assign language strings to sections
185
185
; !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
186
- ; !insertmacro MUI_DESCRIPTION_TEXT ${SecEmulsion } $(DESC_SecEmulsion )
186
+ ; !insertmacro MUI_DESCRIPTION_TEXT ${SecAlloy } $(DESC_SecAlloy )
187
187
; !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociate} $(DESC_SecAssociate)
188
188
; !insertmacro MUI_FUNCTION_DESCRIPTION_END
189
189
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -198,7 +198,7 @@ Section Uninstall
198
198
; Try to remove the Start Menu folder - this will only happen if it is empty
199
199
RMDir " $SMPROGRAMS\${PROGRAM_NAME}"
200
200
201
- Delete " $INSTDIR\emulsion .exe"
201
+ Delete " $INSTDIR\alloy .exe"
202
202
Delete " $INSTDIR\Uninstall.exe"
203
203
RMDir " $INSTDIR" ; This is okay, rmdir fails if the directory is not empty.
204
204
@@ -207,6 +207,6 @@ Section Uninstall
207
207
DeleteRegKey SHCTX " ${REG_UNINST_PATH}"
208
208
209
209
; Extensions mustn't be unregistered here. They might be associated
210
- ; with a program other than Emulsion and removing those would be wrong.
210
+ ; with a program other than Alloy and removing those would be wrong.
211
211
212
212
SectionEnd
0 commit comments