-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotpod.nsi
More file actions
71 lines (52 loc) · 2.81 KB
/
Notpod.nsi
File metadata and controls
71 lines (52 loc) · 2.81 KB
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
# Installer script for Notpod
!define PRODUCT_NAME "ICherry Music Manager"
!define PRODUCT_VERSION "1.0"
!define MUI_ABORTWARNING
!define MUI_ICON ".\Resources\icherry-icon.ico"
!define MUI_UNICON ".\Resources\icherry-icon.ico"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "icherrymm-${PRODUCT_VERSION}-installer.exe"
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
BrandingText "${PRODUCT_NAME}"
!include "MUI2.nsh"
!define MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_WELCOMEPAGE_TITLE "${PRODUCT_NAME} ${PRODUCT_VERSION}"
!define MUI_WELCOMEPAGE_TEXT "Welcome to the installation program for ${PRODUCT_NAME} ${PRODUCT_VERSION}.$\r$\n$\r$\nThis program will install ${PRODUCT_NAME} ${PRODUCT_VERSION} onto your computer. Please make sure you save any open files before you continue. Please read the instructions and information carefully throughout this installation.$\r$\n$\r$\nThanks for choosing ${PRODUCT_NAME}! We hope you will enjoy the application."
!define MUI_WELCOMEFINISHPAGE_BITMAP "Resources\icherry-banner.bmp"
!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_HEADER_TEXT "${PRODUCT_NAME} ${PRODUCT_VERSION} License"
!define MUI_PAGE_HEADER_SUBTEXT "Please read and accept the application license."
!insertmacro MUI_PAGE_LICENSE "LICENSE.TXT"
!define MUI_PAGE_HEADER_TEXT "${PRODUCT_NAME} ${PRODUCT_VERSION} installation information"
!define MUI_PAGE_HEADER_SUBTEXT "Make sure you read this carefully before continuing."
!insertmacro MUI_PAGE_LICENSE "Docs\INSTALL NOTES.TXT"
!define MUI_PAGE_HEADER_TEXT "Installation location"
!define MUI_PAGE_HEADER_SUBTEXT "Where do you want ${PRODUCT_NAME} installed?"
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_TEXT_INSTALLING_TITLE "Now installing ${PRODUCT_NAME} ${PRODUCT_VERSION}..."
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "${PRODUCT_NAME}" SecMain
SetOutPath "$INSTDIR"
File /oname=ICherryMusicManager.exe "bin\Release\Notpod.exe"
File "bin\Release\log4net.dll"
File "bin\Release\logging.xml"
File "bin\Release\Interop.iTunesLib.dll"
File "LICENSE.TXT"
createShortCut "$SMPROGRAMS\ICherry Music Manager\ICherry Music Manager.lnk" "$INSTDIR\ICherryMusicManager.exe"
createShortCut "$SMPROGRAMS\ICherry Music Manager\Uninstall.lnk" "$INSTDIR\uninstaller.exe"
# define uninstaller name
writeUninstaller $INSTDIR\uninstaller.exe
SectionEnd
Section "Uninstall"
# Always delete uninstaller first
delete $INSTDIR\uninstaller.exe
# now delete installed file
delete $INSTDIR\ICherryMusicManager.exe
delete $INSTDIR\log4net.dll
delete $INSTDIR\logging.xml
delete $INSTDIR\LICENSE.txt
delete $INSTDIR\icherrymm.log
delete $INSTDIR\Interop.iTunesLib.dll
delete $INSTDIR
SectionEnd