forked from emesene/emesene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemesene-portable-MUI.nsi
72 lines (56 loc) · 1.9 KB
/
emesene-portable-MUI.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
;--------------------------------
# Compressor Type
SetCompressor /SOLID lzma
;--------------------------------
# Includes
; Modern UI
!include "MUI2.nsh"
;--------------------------------
# Defines
;Program info
!define PROGRAM_NAME "emesene" ; emesene
!define PROGRAM_VERSION "2.11.6-devel"
!define /date PROGRAM_BUILDTIME "%Y%m%d_%H%M"
!define PROGRAM_TYPE "portable"
!define PROGRAM_PUBLISHER "emesene team"
!define PROGRAM_WEBSITE "http://www.emesene.org"
!define PROGRAM_ISSUE "https://github.com/emesene/emesene/issues/"
;--------------------------------
# General
; Name and output file
Name "${PROGRAM_NAME} ${PROGRAM_VERSION}"
OutFile "${PROGRAM_NAME}-${PROGRAM_VERSION}-${PROGRAM_BUILDTIME}-${PROGRAM_TYPE}.exe"
; No user interaction required
SilentInstall silent
; Request application privileges for Windows Vista/7
RequestExecutionLevel admin
;--------------------------------
# MUI Settings
!define MUI_ABORTWARNING
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "windows\header.bmp"
!define MUI_ICON "windows\emesene.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
;--------------------------------
# Languages
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Spanish"
;--------------------------------
# Installer Sections
; Main installation (Required)
Section "${PROGRAM_NAME} ${PROGRAM_VERSION}" secInstall
SetOutPath "$EXEDIR\Portable"
SetOverwrite on
File /r "dist\*.*"
SetOutPath "$EXEDIR\Portable"
ExecWait "$EXEDIR\Portable\emesene.exe"
;nsExec::Exec "$EXEDIR\Portable\emesene.exe"
SectionEnd
/*
; Plug-ins (Optional)
Section "Plug-ins" SecPlugins
;Plug-ins here :)
SectionEnd
*/