+Section "File Associations"
+
+ SetOutPath $INSTDIR
+
+ File "../icon/${ICO_EXE}"
+
+ ; application elements
+
+ WriteRegStr HKCR "${PROG_ID}" "" "Altus Metrum Data File"
+ WriteRegStr HKCR "${PROG_ID}" "FriendlyTypeName" "Altus Metrum Data File"
+ WriteRegStr HKCR "${PROG_ID}\CurVer" "" "${PROG_ID}"
+ WriteRegStr HKCR "${PROG_ID}\DefaultIcon" "" '"$INSTDIR\${ICO_EXE}",-101'
+ WriteRegExpandStr HKCR "${PROG_ID}\shell\play\command" "" '"%SYSTEMROOT%\System32\javaw.exe" -Djava.library.path="$INSTDIR" -jar "$INSTDIR\${FAT_NAME}" "%1"'
+
+ ; .eeprom elements
+
+ WriteRegStr HKCR ".eeprom" "" "${PROG_ALTOSUI}"
+ WriteRegStr HKCR ".eeprom" "PerceivedType" "Altus Metrum Log File"
+ WriteRegStr HKCR ".eeprom" "Content Type" "application/altosui"
+
+ WriteRegStr HKCR ".eeprom\OpenWithProgids" "${PROG_ID}" ""
+ WriteRegStr HKCR ".eeprom\${PROG_ID}" "" "${REG_NAME}"
+
+ ; .telem elements
+
+ WriteRegStr HKCR ".telem" "" "${PROG_ALTOSUI}"
+ WriteRegStr HKCR ".telem" "PerceivedType" "Altus Metrum Telemetry File"
+ WriteRegStr HKCR ".telem" "Content Type" "application/altosui"
+
+ WriteRegStr HKCR ".telem\OpenWithProgids" "${PROG_ID}" ""
+ WriteRegStr HKCR ".telem\${PROG_ID}" "" "${REG_NAME}"
+
+ Call RefreshShellIcons
+SectionEnd
+