1+ !define APPNAME " SpringRollStudio"
2+ !define COMPANYNAME " CloudKid"
3+ !define DESCRIPTION " Application for SpringRoll projects"
4+ # These three must be integers
5+ !define VERSIONMAJOR 0
6+ !define VERSIONMINOR 2
7+ !define VERSIONBUILD 0
8+ # These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
9+ # It is possible to use "mailto:" links in here to open the email client
10+ !define HELPURL " https://github.com/SpringRoll/SpringRollStudio/issues"
11+ !define UPDATEURL " https://github.com/SpringRoll/SpringRollStudio/releases"
12+ !define ABOUTURL " https://github.com/SpringRoll/SpringRollStudio"
13+
14+ Name " ${APPNAME}"
15+ Icon " ..\deploy\assets\images\icon.ico"
16+
17+ # define the resulting installer's name:
18+ OutFile " ..\build\${APPNAME}-Setup-x64.exe"
19+
20+ # Destintation install directory
21+ InstallDir " $PROGRAMFILES\${APPNAME}"
22+
23+ # default section start
24+ Section
25+
26+ # define the path to which the installer should install
27+ SetOutPath " $INSTDIR"
28+
29+ # specify the files to go in the output path
30+ # these are the Windows files produced by grunt-node-webkit-builder
31+ File " ../deploy/assets/images/icon.ico"
32+ File " ../build/${APPNAME}/win64/ffmpegsumo.dll"
33+ File " ../build/${APPNAME}/win64/icudtl.dat"
34+ File " ../build/${APPNAME}/win64/libEGL.dll"
35+ File " ../build/${APPNAME}/win64/libGLESv2.dll"
36+ File " ../build/${APPNAME}/win64/nw.pak"
37+ File " ../build/${APPNAME}/win64/${APPNAME}.exe"
38+
39+ # define the uninstaller name
40+ WriteUninstaller " $INSTDIR\Uninstall.exe"
41+
42+ # create a shortcut in the start menu
43+ CreateDirectory " $SMPROGRAMS\${APPNAME}"
44+ CreateShortCut " $SMPROGRAMS\${APPNAME}\Uninstall.lnk" " $INSTDIR\Uninstall.exe"
45+ CreateShortCut " $SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" " $INSTDIR\${APPNAME}.exe" " " " $INSTDIR\icon.ico"
46+
47+ # Registry information for add/remove programs
48+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " DisplayName" " ${COMPANYNAME} - ${APPNAME} - ${DESCRIPTION}"
49+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " UninstallString" " $\" $INSTDIR\Uninstall.exe$\" "
50+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " QuietUninstallString" " $\" $INSTDIR\Uninstall.exe$\" /S"
51+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " InstallLocation" " $\" $INSTDIR$\" "
52+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " DisplayIcon" " $\" $INSTDIR\icon.ico$\" "
53+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " Publisher" " $\" ${COMPANYNAME}$\" "
54+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " HelpLink" " $\" ${HELPURL}$\" "
55+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " URLUpdateInfo" " $\" ${UPDATEURL}$\" "
56+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " URLInfoAbout" " $\" ${ABOUTURL}$\" "
57+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " DisplayVersion" " $\" ${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}$\" "
58+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " VersionMajor" ${VERSIONMAJOR}
59+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " VersionMinor" ${VERSIONMINOR}
60+
61+ # There is no option for modifying or repairing the install
62+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " NoModify" 1
63+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" " NoRepair" 1
64+
65+ SectionEnd
66+
67+ # create a section to define what the uninstaller does
68+ Section " Uninstall"
69+
70+ # delete the uninstaller
71+ Delete $INSTDIR \Uninstall.exe
72+
73+ # delete the installed files
74+ Delete " $INSTDIR\icon.ico"
75+ Delete " $INSTDIR\ffmpegsumo.dll"
76+ Delete " $INSTDIR\icudt.dll"
77+ Delete " $INSTDIR\libEGL.dll"
78+ Delete " $INSTDIR\libGLESv2.dll"
79+ Delete " $INSTDIR\nw.pak"
80+ Delete " $INSTDIR\${APPNAME}.exe"
81+ Delete " $SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
82+ Delete " $SMPROGRAMS\${APPNAME}\Uninstall.lnk"
83+ rmDir " $SMPROGRAMS\${APPNAME}"
84+ rmDir $INSTDIR
85+
86+ # Remove uninstaller information from the registry
87+ DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}"
88+
89+ SectionEnd
0 commit comments