1 set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
2 set(CPACK_NSIS_HELP_LINK "${CPACK_PACKAGE_HOMEPAGE_URL}")
3 set(CPACK_NSIS_URL_INFO_ABOUT "${CPACK_PACKAGE_HOMEPAGE_URL}")
4 set(CPACK_NSIS_CONTACT "${CPACK_PACKAGE_CONTACT}")
6 # NSIS uses this for the icon in the top left of the installer
7 set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/os/windows\\\\nsis-top.bmp")
9 # Set other icons and bitmaps for NSIS
10 set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/os/windows\\\\openttd.ico")
11 set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/os/windows\\\\openttd.ico")
12 set(CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP "${CMAKE_SOURCE_DIR}/os/windows\\\\nsis-welcome.bmp")
13 set(CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP "${CMAKE_SOURCE_DIR}/os/windows\\\\nsis-welcome.bmp")
15 # Use the icon of the application
16 set(CPACK_NSIS_INSTALLED_ICON_NAME "openttd.exe")
17 # Tell NSIS the binary will be in the root
18 set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
20 # Add detail information on the NSIS installer executable. CPack doesn't
21 # support this out of the box, so we use CPACK_NSIS_DEFINES for this.
23 # \\\ are needed, because this value is generated in another CPack file,
24 # which is used. So one \ is to escape here, the second to escape in the
25 # CPack file, which we have to escape here (hence: 3 \).
26 set(CPACK_NSIS_DEFINES "
29 VIProductVersion \\\"0.0.0.0\\\"
30 VIAddVersionKey \\\"ProductName\\\" \\\"OpenTTD Installer for Windows\\\"
31 VIAddVersionKey \\\"Comments\\\" \\\"Installs OpenTTD \\\${VERSION}\\\"
32 VIAddVersionKey \\\"CompanyName\\\" \\\"OpenTTD Developers\\\"
33 VIAddVersionKey \\\"FileDescription\\\" \\\"Installs OpenTTD \\\${VERSION}\\\"
34 VIAddVersionKey \\\"ProductVersion\\\" \\\"\\\${VERSION}\\\"
35 VIAddVersionKey \\\"InternalName\\\" \\\"InstOpenTTD\\\"
36 VIAddVersionKey \\\"FileVersion\\\" \\\"0.0.0.0\\\"
37 VIAddVersionKey \\\"LegalCopyright\\\" \\\" \\\"