mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
This commit is contained in:
parent
be151825b4
commit
f88e75eb13
@ -1,169 +1,169 @@
|
|||||||
!include "FileAssociation.nsh"
|
!include "FileAssociation.nsh"
|
||||||
|
|
||||||
SetCompressor /SOLID /FINAL lzma
|
SetCompressor /SOLID /FINAL lzma
|
||||||
|
|
||||||
!define PRODUCT_NAME "QupZilla"
|
!define PRODUCT_NAME "QupZilla"
|
||||||
!define /date PRODUCT_VERSION "0.9.7"
|
!define /date PRODUCT_VERSION "0.9.8"
|
||||||
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\qupzilla.exe"
|
!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_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
||||||
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
|
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
|
||||||
|
|
||||||
!include "MUI.nsh"
|
!include "MUI.nsh"
|
||||||
!define MUI_ABORTWARNING
|
!define MUI_ABORTWARNING
|
||||||
!define MUI_ICON "wininstall\install.ico"
|
!define MUI_ICON "wininstall\install.ico"
|
||||||
!define MUI_UNICON "wininstall\uninstall.ico"
|
!define MUI_UNICON "wininstall\uninstall.ico"
|
||||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
||||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "wininstall\welcome.bmp"
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\qupzilla.exe"
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\qupzilla.exe"
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_WELCOME
|
!insertmacro MUI_UNPAGE_WELCOME
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
!insertmacro MUI_UNPAGE_FINISH
|
!insertmacro MUI_UNPAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
!insertmacro MUI_LANGUAGE "Czech"
|
!insertmacro MUI_LANGUAGE "Czech"
|
||||||
!insertmacro MUI_LANGUAGE "Slovak"
|
!insertmacro MUI_LANGUAGE "Slovak"
|
||||||
!insertmacro MUI_LANGUAGE "Dutch"
|
!insertmacro MUI_LANGUAGE "Dutch"
|
||||||
!insertmacro MUI_LANGUAGE "French"
|
!insertmacro MUI_LANGUAGE "French"
|
||||||
!insertmacro MUI_LANGUAGE "German"
|
!insertmacro MUI_LANGUAGE "German"
|
||||||
!insertmacro MUI_LANGUAGE "Korean"
|
!insertmacro MUI_LANGUAGE "Korean"
|
||||||
!insertmacro MUI_LANGUAGE "Russian"
|
!insertmacro MUI_LANGUAGE "Russian"
|
||||||
!insertmacro MUI_LANGUAGE "Spanish"
|
!insertmacro MUI_LANGUAGE "Spanish"
|
||||||
!insertmacro MUI_LANGUAGE "Swedish"
|
!insertmacro MUI_LANGUAGE "Swedish"
|
||||||
!insertmacro MUI_LANGUAGE "Tradchinese"
|
!insertmacro MUI_LANGUAGE "Tradchinese"
|
||||||
!insertmacro MUI_LANGUAGE "Simpchinese"
|
!insertmacro MUI_LANGUAGE "Simpchinese"
|
||||||
|
|
||||||
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
||||||
OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer.exe"
|
OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer.exe"
|
||||||
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}\"
|
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}\"
|
||||||
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
|
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
|
||||||
ShowInstDetails show
|
ShowInstDetails show
|
||||||
ShowUnInstDetails show
|
ShowUnInstDetails show
|
||||||
|
|
||||||
Section "Main Components"
|
Section "Main Components"
|
||||||
KillProcDLL::KillProc "qupzilla.exe"
|
KillProcDLL::KillProc "qupzilla.exe"
|
||||||
Sleep 100
|
Sleep 100
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File "qupzilla.exe"
|
File "qupzilla.exe"
|
||||||
File "AUTHORS"
|
File "AUTHORS"
|
||||||
File "COPYRIGHT"
|
File "COPYRIGHT"
|
||||||
File "GPLv3"
|
File "GPLv3"
|
||||||
File "README"
|
File "README"
|
||||||
File "libeay32.dll"
|
File "libeay32.dll"
|
||||||
File "ssleay32.dll"
|
File "ssleay32.dll"
|
||||||
File "libssl32.dll"
|
File "libssl32.dll"
|
||||||
File "msvcp90.dll"
|
File "msvcp90.dll"
|
||||||
File "msvcr90.dll"
|
File "msvcr90.dll"
|
||||||
File "phonon4.dll"
|
File "phonon4.dll"
|
||||||
File "QtCore4.dll"
|
File "QtCore4.dll"
|
||||||
File "QtGui4.dll"
|
File "QtGui4.dll"
|
||||||
File "QtNetwork4.dll"
|
File "QtNetwork4.dll"
|
||||||
File "QtSql4.dll"
|
File "QtSql4.dll"
|
||||||
File "QtWebKit4.dll"
|
File "QtWebKit4.dll"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\data\default\profiles"
|
SetOutPath "$INSTDIR\data\default\profiles"
|
||||||
File "data\default\profiles\profiles.ini"
|
File "data\default\profiles\profiles.ini"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\data\default\profiles\default"
|
SetOutPath "$INSTDIR\data\default\profiles\default"
|
||||||
File "data\default\profiles\default\background.png"
|
File "data\default\profiles\default\background.png"
|
||||||
File "data\default\profiles\default\browsedata.db"
|
File "data\default\profiles\default\browsedata.db"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\imageformats"
|
SetOutPath "$INSTDIR\imageformats"
|
||||||
File "imageformats\qico4.dll"
|
File "imageformats\qico4.dll"
|
||||||
File "imageformats\qsvg4.dll"
|
File "imageformats\qsvg4.dll"
|
||||||
File "imageformats\qgif4.dll"
|
File "imageformats\qgif4.dll"
|
||||||
File "imageformats\qjpeg4.dll"
|
File "imageformats\qjpeg4.dll"
|
||||||
File "imageformats\qtiff4.dll"
|
File "imageformats\qtiff4.dll"
|
||||||
File "imageformats\qmng4.dll"
|
File "imageformats\qmng4.dll"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\locale"
|
SetOutPath "$INSTDIR\locale"
|
||||||
File "locale\cs_CZ.qm"
|
File "locale\cs_CZ.qm"
|
||||||
File "locale\qt_cs.qm"
|
File "locale\qt_cs.qm"
|
||||||
File "locale\sk_SK.qm"
|
File "locale\sk_SK.qm"
|
||||||
File "locale\qt_sk.qm"
|
File "locale\qt_sk.qm"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\plugins"
|
SetOutPath "$INSTDIR\plugins"
|
||||||
File "plugins\ExamplePlugin.dll"
|
File "plugins\ExamplePlugin.dll"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\sqldrivers"
|
SetOutPath "$INSTDIR\sqldrivers"
|
||||||
File "sqldrivers\qsqlite4.dll"
|
File "sqldrivers\qsqlite4.dll"
|
||||||
File "sqldrivers\qsqlodbc4.dll"
|
File "sqldrivers\qsqlodbc4.dll"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section Icons
|
Section Icons
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
CreateShortCut "$SMPROGRAMS\QupZilla.lnk" "$INSTDIR\qupzilla.exe" ""
|
CreateShortCut "$SMPROGRAMS\QupZilla.lnk" "$INSTDIR\qupzilla.exe" ""
|
||||||
CreateShortCut "$DESKTOP\QupZilla.lnk" "$INSTDIR\qupzilla.exe" ""
|
CreateShortCut "$DESKTOP\QupZilla.lnk" "$INSTDIR\qupzilla.exe" ""
|
||||||
${registerExtension} "$INSTDIR\qupzilla.exe" ".htm" "HTM_FILE"
|
${registerExtension} "$INSTDIR\qupzilla.exe" ".htm" "HTM_FILE"
|
||||||
${registerExtension} "$INSTDIR\qupzilla.exe" ".html" "HTML_FILE"
|
${registerExtension} "$INSTDIR\qupzilla.exe" ".html" "HTML_FILE"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section Uninstaller
|
Section Uninstaller
|
||||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||||
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\qupzilla.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}" "DisplayName" "$(^Name)"
|
||||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninstall.exe"
|
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}" "DisplayIcon" "$INSTDIR\qupzilla.exe"
|
||||||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section Uninstall
|
Section Uninstall
|
||||||
KillProcDLL::KillProc "qupzilla.exe"
|
KillProcDLL::KillProc "qupzilla.exe"
|
||||||
Sleep 100
|
Sleep 100
|
||||||
Delete "$SMPROGRAMS\QupZilla.lnk"
|
Delete "$SMPROGRAMS\QupZilla.lnk"
|
||||||
Delete "$DESKTOP\QupZilla.lnk"
|
Delete "$DESKTOP\QupZilla.lnk"
|
||||||
RMDir /r "$INSTDIR"
|
RMDir /r "$INSTDIR"
|
||||||
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
||||||
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
||||||
${unregisterExtension} ".htm" "HTM_FILE"
|
${unregisterExtension} ".htm" "HTM_FILE"
|
||||||
${unregisterExtension} ".html" "HTML_FILE"
|
${unregisterExtension} ".html" "HTML_FILE"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
BrandingText "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer"
|
BrandingText "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer"
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
;Language selection dialog
|
;Language selection dialog
|
||||||
|
|
||||||
Push ""
|
Push ""
|
||||||
Push ${LANG_ENGLISH}
|
Push ${LANG_ENGLISH}
|
||||||
Push English
|
Push English
|
||||||
Push ${LANG_CZECH}
|
Push ${LANG_CZECH}
|
||||||
Push Czech
|
Push Czech
|
||||||
Push ${LANG_DUTCH}
|
Push ${LANG_DUTCH}
|
||||||
Push Dutch
|
Push Dutch
|
||||||
Push ${LANG_FRENCH}
|
Push ${LANG_FRENCH}
|
||||||
Push French
|
Push French
|
||||||
Push ${LANG_GERMAN}
|
Push ${LANG_GERMAN}
|
||||||
Push German
|
Push German
|
||||||
Push ${LANG_KOREAN}
|
Push ${LANG_KOREAN}
|
||||||
Push Korean
|
Push Korean
|
||||||
Push ${LANG_RUSSIAN}
|
Push ${LANG_RUSSIAN}
|
||||||
Push Russian
|
Push Russian
|
||||||
Push ${LANG_SPANISH}
|
Push ${LANG_SPANISH}
|
||||||
Push Spanish
|
Push Spanish
|
||||||
Push ${LANG_SWEDISH}
|
Push ${LANG_SWEDISH}
|
||||||
Push Swedish
|
Push Swedish
|
||||||
Push ${LANG_TRADCHINESE}
|
Push ${LANG_TRADCHINESE}
|
||||||
Push "Traditional Chinese"
|
Push "Traditional Chinese"
|
||||||
Push ${LANG_SIMPCHINESE}
|
Push ${LANG_SIMPCHINESE}
|
||||||
Push "Simplified Chinese"
|
Push "Simplified Chinese"
|
||||||
Push ${LANG_SLOVAK}
|
Push ${LANG_SLOVAK}
|
||||||
Push Slovak
|
Push Slovak
|
||||||
Push A ; A means auto count languages
|
Push A ; A means auto count languages
|
||||||
; for the auto count to work the first empty push (Push "") must remain
|
; for the auto count to work the first empty push (Push "") must remain
|
||||||
LangDLL::LangDialog "Installer Language" "Please select the language of the installer"
|
LangDLL::LangDialog "Installer Language" "Please select the language of the installer"
|
||||||
|
|
||||||
Pop $LANGUAGE
|
Pop $LANGUAGE
|
||||||
StrCmp $LANGUAGE "cancel" 0 +2
|
StrCmp $LANGUAGE "cancel" 0 +2
|
||||||
Abort
|
Abort
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user