-
Notifications
You must be signed in to change notification settings - Fork 0
/
Installer - offline.nsi
62 lines (46 loc) · 1.79 KB
/
Installer - offline.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
Name "Blue Rose 2.1 Stable"
Outfile "BlueRoseStable.exe"
RequestExecutionLevel admin
Page directory
Page instfiles
InstallDir "$PROFILE\FreeSO"
Section "Main"
SetOutPath '$INSTDIR'
File "BlueRose\bin\Release\BlueRoseLauncher.exe"
File "BlueRose\bin\Release\BlueRoseLauncher.exe.config"
File "BlueRose\bin\Release\BlueRoseLauncher.pdb"
File "BlueRose\bin\Release\Ionic.Zip.dll"
File "BlueRose\bin\Release\Ionic.Zip.xml"
File "BlueRoseUpdate\bin\Release\SimplyUpdate.exe"
File "BlueRoseUpdate\bin\Release\SimplyUpdate.exe.config"
File "BlueRoseUpdate\bin\Release\SimplyUpdate.pdb"
File "BlueRoseUpdate\bin\Release\ZACKUpdater.dll"
File "BlueRoseUpdate\bin\Release\ZACKUpdater.pdb"
# create the uninstaller
WriteUninstaller "$INSTDIR\Uninstall Blue Rose.exe"
# create start menu shortcut
CreateDirectory "$SMPROGRAMS\FreeSO\"
CreateShortCut "$SMPROGRAMS\FreeSO\FreeSO.lnk" "$INSTDIR\BlueRoseLauncher.exe"
CreateShortCut "$SMPROGRAMS\FreeSO\Uninstall Blue Rose.lnk" "$INSTDIR\Uninstall Blue Rose.exe"
# create desktop shortcut
CreateShortCut "$DESKTOP\FreeSO.lnk" "$INSTDIR\BlueRoseLauncher.exe"
SectionEnd
Section "Uninstall"
# first, delete installed files
Delete "$INSTDIR\BlueRoseLauncher.exe"
Delete "$INSTDIR\BlueRoseLauncher.exe.config"
Delete "$INSTDIR\BlueRoseLauncher.pdb"
Delete "$INSTDIR\Ionic.Zip.dll"
Delete "$INSTDIR\Ionic.Zip.xml"
Delete "$INSTDIR\SimplyUpdate.exe"
Delete "$INSTDIR\SimplyUpdate.exe.config"
Delete "$INSTDIR\SimplyUpdate.pdb"
Delete "$INSTDIR\ZACKUpdater.dll"
Delete "$INSTDIR\ZACKUpdater.xml"
Delete "$INSTDIR\Uninstall BlueRoseLauncher.exe"
# second, the shortcuts
Delete "$DESKTOP\FreeSO.lnk"
Delete "$SMPROGRAMS\FreeSO\FreeSO.lnk"
Delete "$SMPROGRAMS\FreeSO\Uninstall Blue Rose.lnk"
Delete "$SMPROGRAMS\FreeSO\"
SectionEnd