summaryrefslogtreecommitdiff
path: root/branding.nsi
diff options
context:
space:
mode:
Diffstat (limited to 'branding.nsi')
-rw-r--r--branding.nsi42
1 files changed, 42 insertions, 0 deletions
diff --git a/branding.nsi b/branding.nsi
new file mode 100644
index 0000000..681cad9
--- /dev/null
+++ b/branding.nsi
@@ -0,0 +1,42 @@
+!ifndef _EN_PROGRAM_NAME
+ # Keep that in sync that with l10/win32-loader.c
+ !define _EN_PROGRAM_NAME "Debian-Installer loader"
+!endif
+!ifndef _PRODUCT_NAME
+ !define _PRODUCT_NAME "win32-loader"
+!endif
+!ifndef _OUTFILE_NAME
+ !define _OUTFILE_NAME "win32-loader.exe"
+!endif
+!ifndef _PROGRAM_ICON
+ !define _PROGRAM_ICON "win32-loader.ico"
+!endif
+!ifndef _COMPANY_NAME
+ !define _COMPANY_NAME "The Debian Project"
+!endif
+!ifdef OPTIONS_TXT
+ !define VERSION_OPT "${VERSION} ${OPTIONS_TXT} "
+!else
+ !define VERSION_OPT "${VERSION}"
+!endif
+
+XPStyle on
+
+Name $(program_name)
+Caption $(program_name)
+Icon ${_PROGRAM_ICON}
+UninstallIcon ${_PROGRAM_ICON}
+OutFile ${_OUTFILE_NAME}
+
+VIProductVersion "${4DIGITS_DATE}"
+
+VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${_COMPANY_NAME}"
+VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${_EN_PROGRAM_NAME}"
+VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${_PRODUCT_NAME}"
+VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${VERSION_OPT}"
+VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "GPLv3+"
+
+BrandingText "${_PRODUCT_NAME} ${VERSION_OPT}"
+
+!define REGSTR_UNINST "Software\Microsoft\Windows\CurrentVersion\Uninstall\Debian-Installer Loader"
+!define REGSTR_WIN32 "Software\Debian\Debian-Installer Loader"