+ ; Common settings
+ WriteRegStr SHCTX ${VIKING_REG_KEY} "" "$INSTDIR"
+ WriteRegStr SHCTX ${VIKING_REG_KEY} "Version" "${VIKING_VERSION}"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "DisplayName" "Viking"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "DisplayVersion" "${VIKING_VERSION}"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\viking_icon.ico"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "HelpLink" "http://sourceforge.net/p/viking/wikiallura"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "URLInfoAbout" "http://sourceforge.net/projects/viking/"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "Publisher" "The Viking developer community"
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "Comments" "$(VIKING_UNINSTALL_COMMENTS)"
+ WriteRegDWORD SHCTX "${VIKING_UNINSTALL_KEY}" "NoModify" 1
+ WriteRegDWORD SHCTX "${VIKING_UNINSTALL_KEY}" "NoRepair" 1
+ WriteRegStr SHCTX "${VIKING_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${VIKING_UNINST_EXE}"
+
+ ; Copy only specific items as now some components (e.g. GPSBabel) are optional.
+ ; This is mostly to get a more accurate install size value (especially as saved into the registry)
+ File ${BINARIES}\viking*
+ File ${BINARIES}\g*.exe
+ File ${BINARIES}\*.dll
+ File ${BINARIES}\*.txt
+ File ${BINARIES}\magic.mgc
+ File /r ${BINARIES}\data
+ File /r ${BINARIES}\locale
+
+ ; Estimate install size based on files in $INSTDIR
+ ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
+ IntFmt $0 "0x%08X" $0
+ WriteRegDWORD SHCTX "${VIKING_UNINSTALL_KEY}" "EstimatedSize" "$0"