diff options
Diffstat (limited to 'OpenSim/Tools/Windows')
-rw-r--r-- | OpenSim/Tools/Windows/Installer/OpenSim.nsi | 302 |
1 files changed, 151 insertions, 151 deletions
diff --git a/OpenSim/Tools/Windows/Installer/OpenSim.nsi b/OpenSim/Tools/Windows/Installer/OpenSim.nsi index d1df7ba..25f33d1 100644 --- a/OpenSim/Tools/Windows/Installer/OpenSim.nsi +++ b/OpenSim/Tools/Windows/Installer/OpenSim.nsi | |||
@@ -1,151 +1,151 @@ | |||
1 | !include "MUI.nsh" | 1 | !include "MUI.nsh" |
2 | 2 | ||
3 | Name "OpenSim" | 3 | Name "OpenSim" |
4 | OutFile "OpenSim Setup 0.4.exe" | 4 | OutFile "OpenSim Setup 0.4.exe" |
5 | 5 | ||
6 | CRCCheck On | 6 | CRCCheck On |
7 | 7 | ||
8 | InstallDir "$PROGRAMFILES\OpenSim" | 8 | InstallDir "$PROGRAMFILES\OpenSim" |
9 | InstallDirRegKey HKCU "Software\OpenSim" "" | 9 | InstallDirRegKey HKCU "Software\OpenSim" "" |
10 | 10 | ||
11 | ;Vista redirects $SMPROGRAMS to all users without this | 11 | ;Vista redirects $SMPROGRAMS to all users without this |
12 | RequestExecutionLevel admin | 12 | RequestExecutionLevel admin |
13 | 13 | ||
14 | Var MUI_TEMP | 14 | Var MUI_TEMP |
15 | Var STARTMENU_FOLDER | 15 | Var STARTMENU_FOLDER |
16 | 16 | ||
17 | !define MUI_LANGDLL_REGISTRY_ROOT "HKCU" | 17 | !define MUI_LANGDLL_REGISTRY_ROOT "HKCU" |
18 | !define MUI_LANGDLL_REGISTRY_KEY "Software\OpenSim" | 18 | !define MUI_LANGDLL_REGISTRY_KEY "Software\OpenSim" |
19 | !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" | 19 | !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" |
20 | 20 | ||
21 | !define MUI_ABORTWARNING | 21 | !define MUI_ABORTWARNING |
22 | 22 | ||
23 | !insertmacro MUI_PAGE_WELCOME | 23 | !insertmacro MUI_PAGE_WELCOME |
24 | !insertmacro MUI_PAGE_LICENSE "LICENSE.txt" | 24 | !insertmacro MUI_PAGE_LICENSE "LICENSE.txt" |
25 | !insertmacro MUI_PAGE_DIRECTORY | 25 | !insertmacro MUI_PAGE_DIRECTORY |
26 | 26 | ||
27 | !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" | 27 | !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" |
28 | !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenSim" | 28 | !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenSim" |
29 | !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" | 29 | !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" |
30 | 30 | ||
31 | !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER | 31 | !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER |
32 | 32 | ||
33 | !insertmacro MUI_PAGE_INSTFILES | 33 | !insertmacro MUI_PAGE_INSTFILES |
34 | !insertmacro MUI_PAGE_FINISH | 34 | !insertmacro MUI_PAGE_FINISH |
35 | 35 | ||
36 | !insertmacro MUI_UNPAGE_WELCOME | 36 | !insertmacro MUI_UNPAGE_WELCOME |
37 | !insertmacro MUI_UNPAGE_CONFIRM | 37 | !insertmacro MUI_UNPAGE_CONFIRM |
38 | !insertmacro MUI_UNPAGE_INSTFILES | 38 | !insertmacro MUI_UNPAGE_INSTFILES |
39 | !insertmacro MUI_UNPAGE_FINISH | 39 | !insertmacro MUI_UNPAGE_FINISH |
40 | 40 | ||
41 | !insertmacro MUI_LANGUAGE "English" | 41 | !insertmacro MUI_LANGUAGE "English" |
42 | !insertmacro MUI_LANGUAGE "French" | 42 | !insertmacro MUI_LANGUAGE "French" |
43 | !insertmacro MUI_LANGUAGE "German" | 43 | !insertmacro MUI_LANGUAGE "German" |
44 | !insertmacro MUI_LANGUAGE "Spanish" | 44 | !insertmacro MUI_LANGUAGE "Spanish" |
45 | !insertmacro MUI_LANGUAGE "SpanishInternational" | 45 | !insertmacro MUI_LANGUAGE "SpanishInternational" |
46 | !insertmacro MUI_LANGUAGE "SimpChinese" | 46 | !insertmacro MUI_LANGUAGE "SimpChinese" |
47 | !insertmacro MUI_LANGUAGE "TradChinese" | 47 | !insertmacro MUI_LANGUAGE "TradChinese" |
48 | !insertmacro MUI_LANGUAGE "Japanese" | 48 | !insertmacro MUI_LANGUAGE "Japanese" |
49 | !insertmacro MUI_LANGUAGE "Korean" | 49 | !insertmacro MUI_LANGUAGE "Korean" |
50 | !insertmacro MUI_LANGUAGE "Italian" | 50 | !insertmacro MUI_LANGUAGE "Italian" |
51 | !insertmacro MUI_LANGUAGE "Dutch" | 51 | !insertmacro MUI_LANGUAGE "Dutch" |
52 | !insertmacro MUI_LANGUAGE "Danish" | 52 | !insertmacro MUI_LANGUAGE "Danish" |
53 | !insertmacro MUI_LANGUAGE "Swedish" | 53 | !insertmacro MUI_LANGUAGE "Swedish" |
54 | !insertmacro MUI_LANGUAGE "Norwegian" | 54 | !insertmacro MUI_LANGUAGE "Norwegian" |
55 | !insertmacro MUI_LANGUAGE "NorwegianNynorsk" | 55 | !insertmacro MUI_LANGUAGE "NorwegianNynorsk" |
56 | !insertmacro MUI_LANGUAGE "Finnish" | 56 | !insertmacro MUI_LANGUAGE "Finnish" |
57 | !insertmacro MUI_LANGUAGE "Greek" | 57 | !insertmacro MUI_LANGUAGE "Greek" |
58 | !insertmacro MUI_LANGUAGE "Russian" | 58 | !insertmacro MUI_LANGUAGE "Russian" |
59 | !insertmacro MUI_LANGUAGE "Portuguese" | 59 | !insertmacro MUI_LANGUAGE "Portuguese" |
60 | !insertmacro MUI_LANGUAGE "PortugueseBR" | 60 | !insertmacro MUI_LANGUAGE "PortugueseBR" |
61 | !insertmacro MUI_LANGUAGE "Polish" | 61 | !insertmacro MUI_LANGUAGE "Polish" |
62 | !insertmacro MUI_LANGUAGE "Ukrainian" | 62 | !insertmacro MUI_LANGUAGE "Ukrainian" |
63 | !insertmacro MUI_LANGUAGE "Czech" | 63 | !insertmacro MUI_LANGUAGE "Czech" |
64 | !insertmacro MUI_LANGUAGE "Slovak" | 64 | !insertmacro MUI_LANGUAGE "Slovak" |
65 | !insertmacro MUI_LANGUAGE "Croatian" | 65 | !insertmacro MUI_LANGUAGE "Croatian" |
66 | !insertmacro MUI_LANGUAGE "Bulgarian" | 66 | !insertmacro MUI_LANGUAGE "Bulgarian" |
67 | !insertmacro MUI_LANGUAGE "Hungarian" | 67 | !insertmacro MUI_LANGUAGE "Hungarian" |
68 | !insertmacro MUI_LANGUAGE "Thai" | 68 | !insertmacro MUI_LANGUAGE "Thai" |
69 | !insertmacro MUI_LANGUAGE "Romanian" | 69 | !insertmacro MUI_LANGUAGE "Romanian" |
70 | !insertmacro MUI_LANGUAGE "Latvian" | 70 | !insertmacro MUI_LANGUAGE "Latvian" |
71 | !insertmacro MUI_LANGUAGE "Macedonian" | 71 | !insertmacro MUI_LANGUAGE "Macedonian" |
72 | !insertmacro MUI_LANGUAGE "Estonian" | 72 | !insertmacro MUI_LANGUAGE "Estonian" |
73 | !insertmacro MUI_LANGUAGE "Turkish" | 73 | !insertmacro MUI_LANGUAGE "Turkish" |
74 | !insertmacro MUI_LANGUAGE "Lithuanian" | 74 | !insertmacro MUI_LANGUAGE "Lithuanian" |
75 | !insertmacro MUI_LANGUAGE "Slovenian" | 75 | !insertmacro MUI_LANGUAGE "Slovenian" |
76 | !insertmacro MUI_LANGUAGE "Serbian" | 76 | !insertmacro MUI_LANGUAGE "Serbian" |
77 | !insertmacro MUI_LANGUAGE "SerbianLatin" | 77 | !insertmacro MUI_LANGUAGE "SerbianLatin" |
78 | !insertmacro MUI_LANGUAGE "Arabic" | 78 | !insertmacro MUI_LANGUAGE "Arabic" |
79 | !insertmacro MUI_LANGUAGE "Farsi" | 79 | !insertmacro MUI_LANGUAGE "Farsi" |
80 | !insertmacro MUI_LANGUAGE "Hebrew" | 80 | !insertmacro MUI_LANGUAGE "Hebrew" |
81 | !insertmacro MUI_LANGUAGE "Indonesian" | 81 | !insertmacro MUI_LANGUAGE "Indonesian" |
82 | !insertmacro MUI_LANGUAGE "Mongolian" | 82 | !insertmacro MUI_LANGUAGE "Mongolian" |
83 | !insertmacro MUI_LANGUAGE "Luxembourgish" | 83 | !insertmacro MUI_LANGUAGE "Luxembourgish" |
84 | !insertmacro MUI_LANGUAGE "Albanian" | 84 | !insertmacro MUI_LANGUAGE "Albanian" |
85 | !insertmacro MUI_LANGUAGE "Breton" | 85 | !insertmacro MUI_LANGUAGE "Breton" |
86 | !insertmacro MUI_LANGUAGE "Belarusian" | 86 | !insertmacro MUI_LANGUAGE "Belarusian" |
87 | !insertmacro MUI_LANGUAGE "Icelandic" | 87 | !insertmacro MUI_LANGUAGE "Icelandic" |
88 | !insertmacro MUI_LANGUAGE "Malay" | 88 | !insertmacro MUI_LANGUAGE "Malay" |
89 | !insertmacro MUI_LANGUAGE "Bosnian" | 89 | !insertmacro MUI_LANGUAGE "Bosnian" |
90 | !insertmacro MUI_LANGUAGE "Kurdish" | 90 | !insertmacro MUI_LANGUAGE "Kurdish" |
91 | !insertmacro MUI_LANGUAGE "Irish" | 91 | !insertmacro MUI_LANGUAGE "Irish" |
92 | !insertmacro MUI_LANGUAGE "Uzbek" | 92 | !insertmacro MUI_LANGUAGE "Uzbek" |
93 | !insertmacro MUI_LANGUAGE "Galician" | 93 | !insertmacro MUI_LANGUAGE "Galician" |
94 | !insertmacro MUI_LANGUAGE "Afrikaans" | 94 | !insertmacro MUI_LANGUAGE "Afrikaans" |
95 | !insertmacro MUI_LANGUAGE "Catalan" | 95 | !insertmacro MUI_LANGUAGE "Catalan" |
96 | 96 | ||
97 | !insertmacro MUI_RESERVEFILE_LANGDLL | 97 | !insertmacro MUI_RESERVEFILE_LANGDLL |
98 | 98 | ||
99 | Section "Install" | 99 | Section "Install" |
100 | SetOutPath "$INSTDIR" | 100 | SetOutPath "$INSTDIR" |
101 | 101 | ||
102 | SetCompress Auto | 102 | SetCompress Auto |
103 | SetOverwrite IfNewer | 103 | SetOverwrite IfNewer |
104 | File /r "bin\*.*" | 104 | File /r "bin\*.*" |
105 | 105 | ||
106 | WriteRegStr HKCU "Software\OpenSim" "" $INSTDIR | 106 | WriteRegStr HKCU "Software\OpenSim" "" $INSTDIR |
107 | WriteUninstaller "$INSTDIR\Uninstall.exe" | 107 | WriteUninstaller "$INSTDIR\Uninstall.exe" |
108 | 108 | ||
109 | !insertmacro MUI_STARTMENU_WRITE_BEGIN Application | 109 | !insertmacro MUI_STARTMENU_WRITE_BEGIN Application |
110 | CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" | 110 | CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" |
111 | CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenSim.lnk" "$INSTDIR\OpenSim.exe" | 111 | CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenSim.lnk" "$INSTDIR\OpenSim.exe" |
112 | CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe" | 112 | CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe" |
113 | !insertmacro MUI_STARTMENU_WRITE_END | 113 | !insertmacro MUI_STARTMENU_WRITE_END |
114 | 114 | ||
115 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" "DisplayName" "OpenSim (remove only)" | 115 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" "DisplayName" "OpenSim (remove only)" |
116 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" "UninstallString" "$INSTDIR\Uninstall.exe" | 116 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" "UninstallString" "$INSTDIR\Uninstall.exe" |
117 | SectionEnd | 117 | SectionEnd |
118 | 118 | ||
119 | Function .onInit | 119 | Function .onInit |
120 | !insertmacro MUI_LANGDLL_DISPLAY | 120 | !insertmacro MUI_LANGDLL_DISPLAY |
121 | FunctionEnd | 121 | FunctionEnd |
122 | 122 | ||
123 | Section "Uninstall" | 123 | Section "Uninstall" |
124 | Delete "$INSTDIR\*.*" | 124 | Delete "$INSTDIR\*.*" |
125 | RMDir /r "$INSTDIR" | 125 | RMDir /r "$INSTDIR" |
126 | 126 | ||
127 | !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP | 127 | !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP |
128 | 128 | ||
129 | Delete "$SMPROGRAMS\$MUI_TEMP\OpenSim.lnk" | 129 | Delete "$SMPROGRAMS\$MUI_TEMP\OpenSim.lnk" |
130 | Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" | 130 | Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" |
131 | 131 | ||
132 | ;Delete empty start menu parent diretories | 132 | ;Delete empty start menu parent diretories |
133 | StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP" | 133 | StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP" |
134 | 134 | ||
135 | startMenuDeleteLoop: | 135 | startMenuDeleteLoop: |
136 | ClearErrors | 136 | ClearErrors |
137 | RMDir $MUI_TEMP | 137 | RMDir $MUI_TEMP |
138 | GetFullPathName $MUI_TEMP "$MUI_TEMP\.." | 138 | GetFullPathName $MUI_TEMP "$MUI_TEMP\.." |
139 | 139 | ||
140 | IfErrors startMenuDeleteLoopDone | 140 | IfErrors startMenuDeleteLoopDone |
141 | 141 | ||
142 | StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop | 142 | StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop |
143 | startMenuDeleteLoopDone: | 143 | startMenuDeleteLoopDone: |
144 | 144 | ||
145 | DeleteRegKey /ifempty HKCU "Software\OpenSim" | 145 | DeleteRegKey /ifempty HKCU "Software\OpenSim" |
146 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" | 146 | DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSim" |
147 | SectionEnd | 147 | SectionEnd |
148 | 148 | ||
149 | Function un.onInit | 149 | Function un.onInit |
150 | !insertmacro MUI_UNGETLANGUAGE | 150 | !insertmacro MUI_UNGETLANGUAGE |
151 | FunctionEnd | 151 | FunctionEnd |