Win-specific: Adjust NSIS installation script for GoldenDict version 1.5

This commit is contained in:
Abs62 2013-10-02 19:57:28 +04:00
parent 5c4e7f5485
commit ae50598816
4 changed files with 31 additions and 11 deletions

View file

@ -1,7 +1,7 @@
!include "MUI2.nsh" !include "MUI2.nsh"
Name "GoldenDict" Name "GoldenDict"
OutFile "GoldenDict-1.0.1-1-Install.exe" OutFile "GoldenDict-1.0.5-Install.exe"
InstallDir "$PROGRAMFILES\GoldenDict" InstallDir "$PROGRAMFILES\GoldenDict"
@ -20,7 +20,7 @@ Var StartMenuFolder
;Pages ;Pages
!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "LICENSE.txt" !insertmacro MUI_PAGE_LICENSE "../LICENSE.txt"
!insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU GDApplication $StartMenuFolder !insertmacro MUI_PAGE_STARTMENU GDApplication $StartMenuFolder
@ -102,30 +102,35 @@ Section
CreateDirectory $INSTDIR\imageformats CreateDirectory $INSTDIR\imageformats
SetOutPath $INSTDIR\imageformats SetOutPath $INSTDIR\imageformats
File ..\release\imageformats\* File ..\imageformats\*
CreateDirectory $INSTDIR\phonon_backend CreateDirectory $INSTDIR\codecs
SetOutPath $INSTDIR\phonon_backend SetOutPath $INSTDIR\codecs
File ..\release\phonon_backend\* File ..\codecs\*
CreateDirectory $INSTDIR\x64
SetOutPath $INSTDIR\x64
File ..\x64\*
CreateDirectory $INSTDIR\locale CreateDirectory $INSTDIR\locale
SetOutPath $INSTDIR\locale SetOutPath $INSTDIR\locale
File ..\release\locale\* File ..\locale\*
CreateDirectory $INSTDIR\content CreateDirectory $INSTDIR\content
CreateDirectory $INSTDIR\content\morphology CreateDirectory $INSTDIR\content\morphology
SetOutPath $INSTDIR\content\morphology SetOutPath $INSTDIR\content\morphology
File ..\release\content\morphology\* File ..\content\morphology\*
SetOutPath $INSTDIR SetOutPath $INSTDIR
File ..\release\*.dll File ..\*.dll
File LICENSE.txt File ..\LICENSE.txt
File /oname=$INSTDIR\GoldenDict.exe ..\release\goldendict.exe File /oname=$INSTDIR\GoldenDict.exe ..\goldendict.exe
WriteUninstaller "$INSTDIR\Uninstall.exe" WriteUninstaller "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN GDApplication !insertmacro MUI_STARTMENU_WRITE_BEGIN GDApplication
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GoldenDict.lnk" "$INSTDIR\GoldenDict.exe" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GoldenDict.lnk" "$INSTDIR\GoldenDict.exe"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
@ -404,6 +409,7 @@ Section "Uninstall"
skip_cfg: skip_cfg:
SetShellVarContext all
!insertmacro MUI_STARTMENU_GETFOLDER GDApplication $StartMenuFolder !insertmacro MUI_STARTMENU_GETFOLDER GDApplication $StartMenuFolder
; This file is auto-generated ; This file is auto-generated

View file

@ -0,0 +1,9 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View file

@ -9,3 +9,5 @@ INCLUDEPATH += .
# Input # Input
SOURCES += gen_uninstall.cc SOURCES += gen_uninstall.cc
RC_FILE = gen_uninstall.rc

View file

@ -0,0 +1,3 @@
#include <windows.h>
1 RT_MANIFEST gen_uninstall.exe.manifest