mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
0a7741cc42
- just bugfix release
385 lines
10 KiB
Plaintext
385 lines
10 KiB
Plaintext
RequestExecutionLevel admin
|
|
!include "wininstall\FileAssociation.nsh"
|
|
SetCompressor /SOLID /FINAL lzma
|
|
|
|
!define PRODUCT_NAME "QupZilla"
|
|
!define /date PRODUCT_VERSION "1.3.1"
|
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\qupzilla.exe"
|
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
|
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
|
|
|
|
!include "MUI.nsh"
|
|
!define MUI_ABORTWARNING
|
|
!define MUI_ICON "wininstall\install.ico"
|
|
!define MUI_UNICON "wininstall\uninstall.ico"
|
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
|
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
!insertmacro MUI_PAGE_LICENSE COPYRIGHT.txt
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\qupzilla.exe"
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
!insertmacro MUI_UNPAGE_WELCOME
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
!insertmacro MUI_UNPAGE_FINISH
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
!insertmacro MUI_LANGUAGE "Czech"
|
|
!insertmacro MUI_LANGUAGE "Slovak"
|
|
!insertmacro MUI_LANGUAGE "German"
|
|
!insertmacro MUI_LANGUAGE "Dutch"
|
|
!insertmacro MUI_LANGUAGE "Portuguese"
|
|
!insertmacro MUI_LANGUAGE "Greek"
|
|
!insertmacro MUI_LANGUAGE "French"
|
|
!insertmacro MUI_LANGUAGE "Italian"
|
|
!insertmacro MUI_LANGUAGE "Romanian"
|
|
!insertmacro MUI_LANGUAGE "Tradchinese"
|
|
!insertmacro MUI_LANGUAGE "Simpchinese"
|
|
!insertmacro MUI_LANGUAGE "Indonesian"
|
|
!insertmacro MUI_LANGUAGE "Georgian"
|
|
!insertmacro MUI_LANGUAGE "Japanese"
|
|
!insertmacro MUI_LANGUAGE "Swedish"
|
|
!insertmacro MUI_LANGUAGE "Ukrainian"
|
|
|
|
!insertmacro MUI_LANGUAGE "Korean"
|
|
!insertmacro MUI_LANGUAGE "Russian"
|
|
!insertmacro MUI_LANGUAGE "Spanish"
|
|
|
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
|
|
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
|
OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer.exe"
|
|
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}\"
|
|
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
|
|
ShowInstDetails show
|
|
ShowUnInstDetails show
|
|
|
|
!include "wininstall\languages.nsh"
|
|
|
|
Section !$(TITLE_SecMain) SecMain
|
|
SectionIn RO
|
|
KillProcDLL::KillProc "qupzilla.exe"
|
|
Sleep 100
|
|
SetOverwrite on
|
|
|
|
SetOutPath "$INSTDIR"
|
|
File "COPYRIGHT.txt"
|
|
File "qupzilla.exe"
|
|
File "qupzilla.dll"
|
|
File "libeay32.dll"
|
|
File "ssleay32.dll"
|
|
File "msvcp90.dll"
|
|
File "msvcr90.dll"
|
|
File "phonon4.dll"
|
|
File "QtCore4.dll"
|
|
File "QtGui4.dll"
|
|
File "QtNetwork4.dll"
|
|
File "QtScript4.dll"
|
|
File "QtSql4.dll"
|
|
File "QtWebKit4.dll"
|
|
|
|
SetOutPath "$INSTDIR\imageformats"
|
|
File "imageformats\qico4.dll"
|
|
File "imageformats\qsvg4.dll"
|
|
File "imageformats\qgif4.dll"
|
|
File "imageformats\qjpeg4.dll"
|
|
File "imageformats\qmng4.dll"
|
|
File "imageformats\qtiff4.dll"
|
|
File "imageformats\qtga4.dll"
|
|
|
|
SetOutPath "$INSTDIR\codecs"
|
|
File "codecs\qcncodecs4.dll"
|
|
File "codecs\qjpcodecs4.dll"
|
|
File "codecs\qkrcodecs4.dll"
|
|
File "codecs\qtwcodecs4.dll"
|
|
|
|
SetOutPath "$INSTDIR\iconengines"
|
|
File "iconengines\qsvgicon4.dll"
|
|
|
|
SetOutPath "$INSTDIR\sqldrivers"
|
|
File "sqldrivers\qsqlite4.dll"
|
|
|
|
SectionEnd
|
|
|
|
SectionGroup $(TITLE_SecThemes) SecThemes
|
|
Section Default SecDefault
|
|
SectionIn RO
|
|
SetOutPath "$INSTDIR\themes\windows"
|
|
File "themes\windows\*"
|
|
SetOutPath "$INSTDIR\themes\windows\images"
|
|
File "themes\windows\images\*"
|
|
SectionEnd
|
|
|
|
Section Chrome SecChrome
|
|
SetOutPath "$INSTDIR\themes\chrome"
|
|
File "themes\chrome\*"
|
|
SetOutPath "$INSTDIR\themes\chrome\images"
|
|
File "themes\chrome\images\*"
|
|
SectionEnd
|
|
|
|
Section Mac SecMac
|
|
SetOutPath "$INSTDIR\themes\mac"
|
|
File "themes\mac\*"
|
|
SetOutPath "$INSTDIR\themes\mac\images"
|
|
File "themes\mac\images\*"
|
|
SectionEnd
|
|
|
|
Section Old SecOld
|
|
SetOutPath "$INSTDIR\themes\default"
|
|
File "themes\default\*"
|
|
SetOutPath "$INSTDIR\themes\default\images"
|
|
File "themes\default\images\*"
|
|
SectionEnd
|
|
|
|
SectionGroupEnd
|
|
|
|
SectionGroup $(TITLE_SecTranslations) SecTranslations
|
|
Section "English"
|
|
SectionIn RO
|
|
SectionEnd
|
|
|
|
Section "Czech"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\cs_CZ.qm"
|
|
File "locale\qt_cs.qm"
|
|
SectionEnd
|
|
|
|
Section "Slovak"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\sk_SK.qm"
|
|
File "locale\qt_sk.qm"
|
|
SectionEnd
|
|
|
|
Section "German"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\de_DE.qm"
|
|
File "locale\qt_de.qm"
|
|
SectionEnd
|
|
|
|
Section "Dutch"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\nl_NL.qm"
|
|
File "locale\qt_nl.qm"
|
|
SectionEnd
|
|
|
|
Section "Italian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\it_IT.qm"
|
|
File "locale\qt_it.qm"
|
|
SectionEnd
|
|
|
|
Section "Chinese"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\zh_CN.qm"
|
|
File "locale\zh_TW.qm"
|
|
File "locale\qt_zh_CN.qm"
|
|
File "locale\qt_zh_TW.qm"
|
|
SectionEnd
|
|
|
|
Section "Polish"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\pl_PL.qm"
|
|
File "locale\qt_pl.qm"
|
|
SectionEnd
|
|
|
|
Section "Spanish"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\es_ES.qm"
|
|
File "locale\es_VE.qm"
|
|
File "locale\qt_es.qm"
|
|
SectionEnd
|
|
|
|
Section "Greek"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\el_GR.qm"
|
|
File "locale\qt_el.qm"
|
|
SectionEnd
|
|
|
|
Section "French"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\fr_FR.qm"
|
|
File "locale\qt_fr.qm"
|
|
SectionEnd
|
|
|
|
Section "Russian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\ru_RU.qm"
|
|
File "locale\qt_ru.qm"
|
|
SectionEnd
|
|
|
|
Section "Portuguese"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\pt_PT.qm"
|
|
File "locale\pt_BR.qm"
|
|
File "locale\qt_pt.qm"
|
|
SectionEnd
|
|
|
|
Section "Serbian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\sr_BA.qm"
|
|
File "locale\sr_RS.qm"
|
|
File "locale\qt_sr_BA.qm"
|
|
File "locale\qt_sr_RS.qm"
|
|
SectionEnd
|
|
|
|
Section "Japanese"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\ja_JP.qm"
|
|
File "locale\qt_ja.qm"
|
|
SectionEnd
|
|
|
|
Section "Georgian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\ka_GE.qm"
|
|
SectionEnd
|
|
|
|
Section "Hungarian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\hu_HU.qm"
|
|
File "locale\qt_hu.qm"
|
|
SectionEnd
|
|
|
|
Section "Indonesian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\id_ID.qm"
|
|
SectionEnd
|
|
|
|
Section "Romanian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\ro_RO.qm"
|
|
SectionEnd
|
|
|
|
Section "Swedish"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\sv_SE.qm"
|
|
File "locale\qt_sv.qm"
|
|
SectionEnd
|
|
|
|
Section "Ukrainian"
|
|
SetOutPath "$INSTDIR\locale"
|
|
File "locale\uk_UA.qm"
|
|
File "locale\qt_uk.qm"
|
|
SectionEnd
|
|
|
|
SectionGroupEnd
|
|
|
|
Section $(TITLE_SecPlugins) SecPlugins
|
|
SetOutPath "$INSTDIR\plugins"
|
|
File "plugins\*.dll"
|
|
SectionEnd
|
|
|
|
Section $(TITLE_SecExtensions) SecExtensions
|
|
SetOutPath "$INSTDIR"
|
|
${registerExtension} "$INSTDIR\qupzilla.exe" ".htm" $(FILE_Htm)
|
|
${registerExtension} "$INSTDIR\qupzilla.exe" ".html" $(FILE_Html)
|
|
SectionEnd
|
|
|
|
Section -StartMenu
|
|
SetOutPath "$INSTDIR"
|
|
SetShellVarContext all
|
|
CreateDirectory "$SMPROGRAMS\QupZilla"
|
|
CreateShortCut "$SMPROGRAMS\QupZilla\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
|
CreateShortCut "$SMPROGRAMS\QupZilla\QupZilla.lnk" "$INSTDIR\qupzilla.exe"
|
|
CreateShortCut "$SMPROGRAMS\QupZilla\License.lnk" "$INSTDIR\COPYRIGHT.txt"
|
|
SectionEnd
|
|
|
|
Section $(TITLE_SecDesktop) SecDesktop
|
|
SetOutPath "$INSTDIR"
|
|
CreateShortCut "$DESKTOP\QupZilla.lnk" "$INSTDIR\qupzilla.exe" ""
|
|
SectionEnd
|
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecMain} $(DESC_SecMain)
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} $(DESC_SecTranslations)
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecPlugins} $(DESC_SecPlugins)
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} $(DESC_SecDesktop)
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecExtensions} $(DESC_SecExtensions)
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecThemes} $(DESC_SecThemes)
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
|
|
|
Section -Uninstaller
|
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
|
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\qupzilla.exe"
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\qupzilla.exe"
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
|
SectionEnd
|
|
|
|
Section -MSVC
|
|
InitPluginsDir
|
|
SetOutPath $PLUGINSDIR
|
|
File "wininstall\vcredist_x86.exe"
|
|
DetailPrint "Installing Visual C++ 2008 Libraries"
|
|
ExecWait '"$PLUGINSDIR\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /quiet"'
|
|
SectionEnd
|
|
|
|
Section Uninstall
|
|
KillProcDLL::KillProc "qupzilla.exe"
|
|
Sleep 100
|
|
|
|
SetShellVarContext all
|
|
Delete "$DESKTOP\QupZilla.lnk"
|
|
RMDir /r "$INSTDIR"
|
|
RMDir /r "$SMPROGRAMS\QupZilla"
|
|
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
|
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
|
${unregisterExtension} ".htm" $(FILE_Htm)
|
|
${unregisterExtension} ".html" $(FILE_Html)
|
|
SectionEnd
|
|
|
|
BrandingText "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer"
|
|
|
|
Function .onInit
|
|
;Language selection dialog
|
|
|
|
Push ""
|
|
Push ${LANG_ENGLISH}
|
|
Push English
|
|
Push ${LANG_CZECH}
|
|
Push Czech
|
|
Push ${LANG_SLOVAK}
|
|
Push Slovak
|
|
Push ${LANG_GERMAN}
|
|
Push German
|
|
Push ${LANG_DUTCH}
|
|
Push Dutch
|
|
Push ${LANG_PORTUGUESE}
|
|
Push Portuguese
|
|
Push ${LANG_GREEK}
|
|
Push Greek
|
|
Push ${LANG_FRENCH}
|
|
Push French
|
|
Push ${LANG_ITALIAN}
|
|
Push Italian
|
|
Push ${LANG_ROMANIAN}
|
|
Push Romanian
|
|
Push ${LANG_TRADCHINESE}
|
|
Push TraditionalChinese
|
|
Push ${LANG_SIMPCHINESE}
|
|
Push SimplifiedChinese
|
|
Push ${LANG_INDONESIAN}
|
|
Push Indonesian
|
|
Push ${LANG_GEORGIAN}
|
|
Push Georgian
|
|
Push ${LANG_JAPANESE}
|
|
Push Japanese
|
|
Push ${LANG_SWEDISH}
|
|
Push Swedish
|
|
Push ${LANG_UKRAINIAN}
|
|
Push Ukrainian
|
|
Push A ; A means auto count languages
|
|
; for the auto count to work the first empty push (Push "") must remain
|
|
LangDLL::LangDialog "Installer Language" "Please select the language of the installer"
|
|
|
|
Pop $LANGUAGE
|
|
StrCmp $LANGUAGE "cancel" 0 +2
|
|
Abort
|
|
FunctionEnd
|