@@ -1,4 +1,4 @@
1−; Elm Platform Installer
1+; Elm Installer
3;--------------------------------
3;--------------------------------
@@ -12,7 +12,7 @@
12;--------------------------------
12;--------------------------------
15− !Define PRODUCT_DIR_REG_KEY "Software\Elm\Elm Platform\${PLATFORM_VERSION}"
15+ !Define PRODUCT_DIR_REG_KEY "Software\Elm\Elm\${PLATFORM_VERSION}"
16 !Define FILES_SOURCE_PATH "files"
16 !Define FILES_SOURCE_PATH "files"
17 !Define INST_DAT "inst.dat"
17 !Define INST_DAT "inst.dat"
18 !Define UNINST_DAT "uninst.dat"
18 !Define UNINST_DAT "uninst.dat"
@@ -26,11 +26,11 @@
26;General settings
26;General settings
28 ;Name and file
28 ;Name and file
29− Name "Elm Platform ${PLATFORM_VERSION}"
29+ Name "Elm ${PLATFORM_VERSION}"
30− OutFile "ElmPlatform-${PLATFORM_VERSION}-setup.exe"
30+ OutFile "Elm-${PLATFORM_VERSION}.exe"
32 ;Default install dir
32 ;Default install dir
33− InstallDir "$PROGRAMFILES\Elm Platform\${PLATFORM_VERSION}"
33+ InstallDir "$PROGRAMFILES\Elm\${PLATFORM_VERSION}"
34 InstallDirRegKey HKLM "${PRODUCT_DIR_REG_KEY}" ""
34 InstallDirRegKey HKLM "${PRODUCT_DIR_REG_KEY}" ""
@@ -96,18 +96,18 @@ FunctionEnd
97 ;Start Menu Folder Page Configuration
97 ;Start Menu Folder Page Configuration
98 !Define MUI_PAGE_HEADER_SUBTEXT \
98 !Define MUI_PAGE_HEADER_SUBTEXT \
99− "Choose a Start Menu folder for the Elm Platform ${PLATFORM_VERSION} shortcuts."
99+ "Choose a Start Menu folder for the Elm ${PLATFORM_VERSION} shortcuts."
100 !Define MUI_STARTMENUPAGE_TEXT_TOP \
100 !Define MUI_STARTMENUPAGE_TEXT_TOP \
101− "Select the Start Menu folder in which you would like to create Elm Platform shortcuts. You can also enter a name to create a new folder."
101+ "Select the Start Menu folder in which you would like to create Elm shortcuts. You can also enter a name to create a new folder."
102 !Define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
102 !Define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
103 !Define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_DIR_REG_KEY}"
103 !Define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_DIR_REG_KEY}"
104 !Define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
104 !Define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
105− !Define MUI_STARTMENUPAGE_DEFAULTFOLDER "Elm Platform ${PLATFORM_VERSION}"
105+ !Define MUI_STARTMENUPAGE_DEFAULTFOLDER "Elm ${PLATFORM_VERSION}"
106 !insertmacro MUI_PAGE_STARTMENU StartMenuPage $START_MENU_FOLDER
106 !insertmacro MUI_PAGE_STARTMENU StartMenuPage $START_MENU_FOLDER
107 !insertmacro MUI_PAGE_INSTFILES
107 !insertmacro MUI_PAGE_INSTFILES
108 !define MUI_FINISHPAGE_RUN
108 !define MUI_FINISHPAGE_RUN
109 !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
109 !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
110− !define MUI_FINISHPAGE_RUN_TEXT "Open tutorial on how to use Elm Platform"
110+ !define MUI_FINISHPAGE_RUN_TEXT "Open tutorial on how to use Elm"
111 !insertmacro MUI_PAGE_FINISH
111 !insertmacro MUI_PAGE_FINISH
113 !insertmacro MUI_UNPAGE_WELCOME
113 !insertmacro MUI_UNPAGE_WELCOME
@@ -156,7 +156,7 @@ Section "Update the PATH environment variable" SecPath
157 ; Update PATH
157 ; Update PATH
158 ; First, remove any older version
158 ; First, remove any older version
159− ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\removefrompath.vbs" "$PROGRAMFILES\Elm Platform"'
159+ ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\removefrompath.vbs" "$PROGRAMFILES\Elm"'
160 ; Then add to the PATH
160 ; Then add to the PATH
161 ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\updatepath.vbs" "$INSTDIR\bin"'
161 ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\updatepath.vbs" "$INSTDIR\bin"'
162 SetShellVarContext current
162 SetShellVarContext current
@@ -182,13 +182,13 @@ Section "Create uninstaller" SecAddRem
182 SectionIn RO
182 SectionIn RO
184 ; Add uninstall information to Add/Remove Programs
184 ; Add uninstall information to Add/Remove Programs
185− WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ElmPlatform-${PLATFORM_VERSION}" \
185+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Elm-${PLATFORM_VERSION}" \
186− "DisplayName" "Elm Platform ${PLATFORM_VERSION}"
186+ "DisplayName" "Elm ${PLATFORM_VERSION}"
187− WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ElmPlatform-${PLATFORM_VERSION}" \
187+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Elm-${PLATFORM_VERSION}" \
188 "UninstallString" "$\"$INSTDIR\Uninstall.exe$\""
188 "UninstallString" "$\"$INSTDIR\Uninstall.exe$\""
189− WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ElmPlatform-${PLATFORM_VERSION}" \
189+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Elm-${PLATFORM_VERSION}" \
190 "DisplayIcon" "$INSTDIR\logo.ico"
190 "DisplayIcon" "$INSTDIR\logo.ico"
191− WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ElmPlatform-${PLATFORM_VERSION}" \
191+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Elm-${PLATFORM_VERSION}" \
192 "Publisher" "elm-lang.org"
192 "Publisher" "elm-lang.org"
194 ;Create uninstaller
194 ;Create uninstaller
@@ -225,7 +225,7 @@ SectionGroupEnd
225Section "Uninstall"
225Section "Uninstall"
227 ; Update PATH
227 ; Update PATH
228− ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\removefrompath.vbs" "$PROGRAMFILES\Elm Platform"'
228+ ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$INSTDIR\removefrompath.vbs" "$PROGRAMFILES\Elm"'
229 SetShellVarContext current
229 SetShellVarContext current
231 !Include ${UNINST_DAT}
231 !Include ${UNINST_DAT}
@@ -233,8 +233,8 @@ Section "Uninstall"
233 Delete "$INSTDIR\Uninstall.exe"
233 Delete "$INSTDIR\Uninstall.exe"
234 RMDir $INSTDIR
234 RMDir $INSTDIR
236− ;Since we install to '$PF\Elm Platform\$PLATFORM_VERSION', we
236+ ;Since we install to '$PF\Elm\$PLATFORM_VERSION', we
237− ;should also try to delete '$PF\Elm Platform' if it is empty.
237+ ;should also try to delete '$PF\Elm' if it is empty.
238 ${GetParent} $INSTDIR $R0
238 ${GetParent} $INSTDIR $R0
239 RMDir $R0
239 RMDir $R0
@@ -256,7 +256,7 @@ Section "Uninstall"
256 DeleteRegKey HKCU "Software\Elm"
256 DeleteRegKey HKCU "Software\Elm"
257 DeleteRegKey HKLM "${PRODUCT_DIR_REG_KEY}"
257 DeleteRegKey HKLM "${PRODUCT_DIR_REG_KEY}"
258 DeleteRegKey /IfEmpty HKCU Software\Elm
258 DeleteRegKey /IfEmpty HKCU Software\Elm
259− DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ElmPlatform-${PLATFORM_VERSION}"
259+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Elm-${PLATFORM_VERSION}"
261 ; Update environment variables
261 ; Update environment variables
262 SendMessage ${HWND_BROADCAST} ${WM_SETTINGCHANGE} 0 "STR:Environment" /TIMEOUT=5000
262 SendMessage ${HWND_BROADCAST} ${WM_SETTINGCHANGE} 0 "STR:Environment" /TIMEOUT=5000