+!define APP_REGNAME_DOC "LyX.Document"
+
+!define APP_EXT ".lyx"
+!define APP_MIME_TYPE "application/lyx"
+
+#--------------------------------
+# Setup settings
+
+# Output file name can be configured using command line paramaters like
+# /DExeFile=/path/to/installer
+
+!ifndef SETUPTYPE
+ !define SETUPTYPE STANDARD
+!endif
+
+!if ${SETUPTYPE} == MINIMAL
+
+ !define SETUP_EXE ${MinimalExeFile}
+
+!else if ${SETUPTYPE} == STANDARD
+
+ !define SETUP_EXE ${ExeFile}
+ !define BUNDLE_IMAGEMAGICK
+ !define BUNDLE_GHOSTSCRIPT
+
+!else if ${SETUPTYPE} == BUNDLE
+
+ !define SETUP_EXE ${BundleExeFile}
+ !define BUNDLE_IMAGEMAGICK
+ !define BUNDLE_GHOSTSCRIPT
+ !define BUNDLESETUP_LATEX
+
+!endif
+
+!define SETUP_ICON "${FILES_ICONS}\lyx.ico"
+!define SETUP_HEADERIMAGE "graphics\header.bmp"
+!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
+!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
+!define SETUP_UNINSTALLER_KEY "${APP_NAME}"
+
+#--------------------------------
+# Names of binaries to identify compontents