Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
2550b857a764639447271e29d12410f29ded9fe1
[simgrid.git] / buildtools / Cmake / src / simgrid.nsi.in
1 !include "MUI2.nsh"\r
2 \r
3 ;--------------------------------\r
4 ;Interface Configuration\r
5 \r
6   !define MUI_HEADERIMAGE\r
7   !define MUI_HEADERIMAGE_BITMAP "@CMAKE_HOME_DIRECTORY@\doc\webcruft\simgrid_logo_win_2011.bmp" ; optional\r
8   !define MUI_ABORTWARNING\r
9 \r
10 ;--------------------------------\r
11 ;Pages\r
12 \r
13   !insertmacro MUI_PAGE_LICENSE "@CMAKE_HOME_DIRECTORY@\LICENSE-LGPL-2.1"\r
14   !insertmacro MUI_PAGE_COMPONENTS\r
15   !insertmacro MUI_PAGE_DIRECTORY\r
16   !insertmacro MUI_PAGE_INSTFILES\r
17   !insertmacro MUI_PAGE_FINISH\r
18   \r
19   !insertmacro MUI_UNPAGE_CONFIRM\r
20   !insertmacro MUI_UNPAGE_INSTFILES\r
21   !insertmacro MUI_UNPAGE_FINISH\r
22 \r
23 ;--------------------------------\r
24 ;Languages\r
25   !insertmacro MUI_LANGUAGE "English"\r
26   !insertmacro MUI_LANGUAGE "French"\r
27 ;--------------------------------\r
28 \r
29 Name "Simgrid"\r
30 outFile "SimGrid-@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@_SGjava_@NSIS_WIN_VERSION@@BIN_EXE@"\r
31 Icon "@CMAKE_HOME_DIRECTORY@\doc\webcruft\SGicon.ico"\r
32 \r
33 RequestExecutionLevel admin\r
34 \r
35 # set the default installation directory\r
36 InstallDir c:\SimGrid@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\r
37 \r
38 Section "Libraries and Headers" LibSection\r
39 \r
40         setOutPath $INSTDIR\r
41         file @CMAKE_HOME_DIRECTORY@\AUTHORS\r
42         file @CMAKE_HOME_DIRECTORY@\Changelog\r
43         file @CMAKE_HOME_DIRECTORY@\COPYING\r
44         file @CMAKE_HOME_DIRECTORY@\LICENSE-LGPL-2.1\r
45         file @CMAKE_HOME_DIRECTORY@\NEWS\r
46 \r
47         # install lib\r
48         CreateDirectory $INSTDIR\lib\r
49         setOutPath $INSTDIR\lib\r
50         file lib\libsimgrid.dll\r
51         file lib\libsimgrid.def\r
52         \r
53         #install headers\r
54         CreateDirectory  $INSTDIR\include\r
55         setOutPath $INSTDIR\include\r
56         file @CMAKE_HOME_DIRECTORY@\include\xbt.h\r
57         file include\simgrid_config.h\r
58         \r
59         CreateDirectory  $INSTDIR\include\xbt\r
60         setOutPath $INSTDIR\include\xbt\r
61         file @CMAKE_HOME_DIRECTORY@\include\xbt\misc.h\r
62         file @CMAKE_HOME_DIRECTORY@\include\xbt\sysdep.h\r
63         file @CMAKE_HOME_DIRECTORY@\include\xbt\virtu.h\r
64         file @CMAKE_HOME_DIRECTORY@\include\xbt\str.h\r
65         file @CMAKE_HOME_DIRECTORY@\include\xbt\strbuff.h\r
66         file @CMAKE_HOME_DIRECTORY@\include\xbt\hash.h\r
67         file @CMAKE_HOME_DIRECTORY@\include\xbt\function_types.h\r
68         file @CMAKE_HOME_DIRECTORY@\include\xbt\asserts.h \r
69         file @CMAKE_HOME_DIRECTORY@\include\xbt\ex.h\r
70         file @CMAKE_HOME_DIRECTORY@\include\xbt\log.h\r
71         file @CMAKE_HOME_DIRECTORY@\include\xbt\module.h\r
72         file @CMAKE_HOME_DIRECTORY@\include\xbt\mallocator.h\r
73         file @CMAKE_HOME_DIRECTORY@\include\xbt\dynar.h\r
74         file @CMAKE_HOME_DIRECTORY@\include\xbt\dict.h\r
75         file @CMAKE_HOME_DIRECTORY@\include\xbt\set.h\r
76         file @CMAKE_HOME_DIRECTORY@\include\xbt\heap.h\r
77         file @CMAKE_HOME_DIRECTORY@\include\xbt\graph.h\r
78         file @CMAKE_HOME_DIRECTORY@\include\xbt\fifo.h\r
79         file @CMAKE_HOME_DIRECTORY@\include\xbt\swag.h\r
80         file @CMAKE_HOME_DIRECTORY@\include\xbt\lib.h\r
81         file @CMAKE_HOME_DIRECTORY@\include\xbt\matrix.h\r
82         file @CMAKE_HOME_DIRECTORY@\include\xbt\peer.h\r
83         file @CMAKE_HOME_DIRECTORY@\include\xbt\config.h\r
84         file @CMAKE_HOME_DIRECTORY@\include\xbt\cunit.h\r
85         file @CMAKE_HOME_DIRECTORY@\include\xbt\graphxml_parse.h\r
86         file @CMAKE_HOME_DIRECTORY@\include\xbt\graphxml.h\r
87         file @CMAKE_HOME_DIRECTORY@\include\xbt\synchro_core.h\r
88         file @CMAKE_HOME_DIRECTORY@\include\xbt\queue.h\r
89         file @CMAKE_HOME_DIRECTORY@\include\xbt\setset.h\r
90         file @CMAKE_HOME_DIRECTORY@\include\xbt\mmalloc.h\r
91         file @CMAKE_HOME_DIRECTORY@\include\xbt\parmap.h\r
92         file @CMAKE_HOME_DIRECTORY@\include\xbt\automaton.h\r
93     file @CMAKE_HOME_DIRECTORY@\include\xbt\xbt_os_thread.h\r
94     file @CMAKE_HOME_DIRECTORY@\include\xbt\RngStream.h\r
95 \r
96         CreateDirectory  $INSTDIR\include\simgrid\r
97         setOutPath $INSTDIR\include\simgrid\r
98         file @CMAKE_HOME_DIRECTORY@\include\simgrid\platf.h\r
99         file @CMAKE_HOME_DIRECTORY@\include\simgrid\modelchecker.h\r
100         file @CMAKE_HOME_DIRECTORY@\include\simgrid\simix.h\r
101 \r
102         CreateDirectory  $INSTDIR\include\msg\r
103         setOutPath $INSTDIR\include\msg\r
104         file @CMAKE_HOME_DIRECTORY@\include\msg\msg.h\r
105         file @CMAKE_HOME_DIRECTORY@\include\msg\datatypes.h\r
106         \r
107         CreateDirectory  $INSTDIR\include\simdag\r
108         setOutPath $INSTDIR\include\simdag\r
109         file @CMAKE_HOME_DIRECTORY@\include\simdag\simdag.h\r
110         file @CMAKE_HOME_DIRECTORY@\include\simdag\datatypes.h\r
111 \r
112         \r
113         CreateDirectory  $INSTDIR\include\surf\r
114         setOutPath $INSTDIR\include\surf\r
115         file @CMAKE_HOME_DIRECTORY@\include\surf\surfxml_parse.h\r
116         file @CMAKE_HOME_DIRECTORY@\include\surf\simgrid_dtd.h\r
117         file @CMAKE_HOME_DIRECTORY@\include\surf\surf_routing.h\r
118         \r
119         CreateDirectory  $INSTDIR\include\instr\r
120         setOutPath $INSTDIR\include\instr\r
121         file @CMAKE_HOME_DIRECTORY@\include\instr\instr.h\r
122         \r
123 SectionEnd\r
124 Section "Binaries" BinSection   \r
125         \r
126         # insatll bin\r
127         CreateDirectory $INSTDIR\bin\r
128         setOutPath $INSTDIR\bin\r
129         file bin\colorize\r
130         file bin\graphicator@BIN_EXE@\r
131         file bin\simgrid_update_xml\r
132 \r
133         \r
134 SectionEnd\r
135 Section "Documentation" DocSection      \r
136         \r
137         # install doc\r
138         CreateDirectory $INSTDIR\doc\r
139         setOutPath $INSTDIR\doc\r
140         file /nonfatal /r @CMAKE_HOME_DIRECTORY@\doc\html\r
141         # create a shortcut in the start menu programs directory\r
142         CreateDirectory "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@"\r
143         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Documentation.lnk" "$INSTDIR\doc\html\index.html"\r
144         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Website.lnk"       "http://simgrid.gforge.inria.fr/"\r
145         \r
146 SectionEnd\r
147 Section "Examples" ExamplesSection      \r
148 \r
149         CreateDirectory $INSTDIR\examples\r
150         setOutPath $INSTDIR\examples\r
151         \r
152         #install examples for platforms\r
153         file /r @CMAKE_HOME_DIRECTORY@\examples\platforms\r
154         \r
155         # install example HelloWorld\r
156         file /r @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\r
157                 \r
158         # install example MasterSlave\r
159         CreateDirectory $INSTDIR\examples\MasterSlave\r
160         setOutPath $INSTDIR\examples\MasterSlave\r
161         file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\masterslave_forwarder.c\r
162         file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\deployment_masterslave_forwarder.xml\r
163         file @CMAKE_HOME_DIRECTORY@\examples\msg\msg_platform.xml\r
164         file @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\CMakeLists.txt\r
165 \r
166         # create shortcuts in the start menu programs directory\r
167         CreateDirectory "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Examples\"\r
168         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Examples\HelloWorld project.lnk"   "$INSTDIR\examples\HelloWorld"\r
169         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Examples\MasterSlave project.lnk"  "$INSTDIR\examples\MasterSlave"\r
170         \r
171 SectionEnd\r
172 \r
173 Section "Java Bindings" JavaSection     \r
174         # install java library and examples\r
175         CreateDirectory $INSTDIR\examples\simgrid-java\r
176         setOutPath $INSTDIR\lib\r
177         file /nonfatal "lib\SG_java.dll"\r
178         file /nonfatal "lib\SG_java.def"\r
179         file /nonfatal "simgrid.jar"\r
180         setOutPath $INSTDIR\examples\simgrid-java\r
181         file /nonfatal /r ".\examples\"\r
182         # create shortcuts in the start menu programs directory\r
183         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Examples\Java project.lnk" "$INSTDIR\examples\simgrid-java"\r
184         # create a popup box, with an OK button"\r
185         messageBox MB_OK "WARNING! Please add to your environment variable CLASSPATH value '$INSTDIR\lib\simgrid.jar;.' before executing Simgrid classes."\r
186 SectionEnd\r
187 \r
188 Section "SMPI Library" SMPISection\r
189         setOutPath $INSTDIR\bin\r
190         file bin\smpicc\r
191         file bin\smpif2c\r
192         file bin\smpiff\r
193         file bin\smpirun\r
194         file bin\smpif90\r
195         \r
196     setOutPath $INSTDIR\lib\r
197         \r
198         CreateDirectory  $INSTDIR\include\smpi\r
199         setOutPath $INSTDIR\include\smpi\r
200         file @CMAKE_HOME_DIRECTORY@\include\smpi\smpi.h\r
201         file @CMAKE_HOME_DIRECTORY@\include\smpi\mpi.h\r
202         file @CMAKE_HOME_DIRECTORY@\include\smpi\smpi_cocci.h\r
203         file @CMAKE_HOME_DIRECTORY@\include\smpi\smpi_main.h\r
204         file include\smpi\mpif.h\r
205         file include\smpi\smpif.h\r
206         \r
207         CreateDirectory $INSTDIR\examples\smpi\r
208         file /r @CMAKE_HOME_DIRECTORY@\examples\smpi\tracing\r
209         file /r @CMAKE_HOME_DIRECTORY@\examples\smpi\replay\r
210         setOutPath $INSTDIR\examples\smpi\r
211         file @CMAKE_HOME_DIRECTORY@\examples\smpi\bcbench.c\r
212         file @CMAKE_HOME_DIRECTORY@\examples\smpi\mvmul.c\r
213         file /r @CMAKE_HOME_DIRECTORY@\examples\smpi\mc\r
214         file @CMAKE_HOME_DIRECTORY@\examples\smpi\hostfile\r
215         file @CMAKE_HOME_DIRECTORY@\examples\msg\small_platform_with_routers.xml\r
216         file @CMAKE_HOME_DIRECTORY@\examples\smpi\CMakeLists.txt\r
217 SectionEnd\r
218 \r
219 # default section start\r
220 section \r
221         # define uninstaller name\r
222         writeUninstaller $INSTDIR\uninstaller@BIN_EXE@\r
223 \r
224         # create a shortcut in the start menu programs directory\r
225         CreateDirectory "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@"\r
226         createShortCut  "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\Uninstall simgrid.lnk" "$INSTDIR\uninstaller@BIN_EXE@"\r
227 \r
228         # Include for some of the windows message defines\r
229         !include "winmessages.nsh"\r
230         # HKLM (all users) vs HKCU (current user) defines\r
231         !define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'\r
232         !define env_hkcu 'HKCU "Environment"'\r
233         # Set Variables\r
234         WriteRegExpandStr ${env_hkcu} SIMGRID_ROOT $INSTDIR\r
235         WriteRegExpandStr ${env_hkcu} SIMGRID_VERSION @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@\r
236         \r
237         WriteRegStr HKCU "SOFTWARE\SimGrid" "Version" "@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@"\r
238         WriteRegStr HKCU "SOFTWARE\SimGrid" "InstallPath" "$INSTDIR"\r
239         \r
240         # create a popup box, with an OK button"\r
241         messageBox MB_OK "WARNING! Please add to your environment variable PATH value '$INSTDIR\lib;$INSTDIR\GnuWin32\bin' before executing Simgrid binaries."\r
242         \r
243         SetRebootFlag false\r
244 \r
245 # default section end\r
246 sectionEnd\r
247 \r
248 LangString DESC_LibSection              ${LANG_ENGLISH} "Install Simgrid libraries with associated headers."\r
249 LangString DESC_BinSection              ${LANG_ENGLISH} "Install some useful tools for Simgrid."\r
250 LangString DESC_DocSection              ${LANG_ENGLISH} "Generated (doxygen) documentation."\r
251 LangString DESC_ExamplesSection ${LANG_ENGLISH} "Simgrid's HelloWorld example and some classical platforms."\r
252 LangString DESC_JAVASection     ${LANG_ENGLISH} "Install the Java binding and examples."\r
253 LangString DESC_SMPISection     ${LANG_ENGLISH} "Install the SMPI library, headers, and examples."\r
254 \r
255 \r
256 LangString DESC_LibSection              ${LANG_FRENCH}  "Installer les librairies Simgrid et leurs Ent�tes."\r
257 LangString DESC_BinSection              ${LANG_FRENCH}  "Installer les outils optionnels."\r
258 LangString DESC_DocSection              ${LANG_FRENCH}  "Installer la documentation."\r
259 LangString DESC_ExamplesSection ${LANG_FRENCH}  "Installer un exemple 'HelloWorld' et des fichiers de plate-formes types."\r
260 LangString DESC_JAVASection     ${LANG_FRENCH}  "Installer la librairie Simgrid-java et les exemples."\r
261 LangString DESC_SMPISection     ${LANG_FRENCH}  "Installer la librairie SMPI, ses en-t�tes, et ses exemples."\r
262 \r
263 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN\r
264   !insertmacro MUI_DESCRIPTION_TEXT ${LibSection}               $(DESC_LibSection)\r
265   !insertmacro MUI_DESCRIPTION_TEXT ${BinSection}               $(DESC_BinSection)\r
266   !insertmacro MUI_DESCRIPTION_TEXT ${DocSection}               $(DESC_DocSection)\r
267   !insertmacro MUI_DESCRIPTION_TEXT ${ExamplesSection}  $(DESC_ExamplesSection)\r
268   !insertmacro MUI_DESCRIPTION_TEXT ${JAVASection}              $(DESC_JAVASection)\r
269   !insertmacro MUI_DESCRIPTION_TEXT ${SMPISection}              $(DESC_SMPISection)\r
270 !insertmacro MUI_FUNCTION_DESCRIPTION_END\r
271 \r
272 # create a section to define what the uninstaller does.\r
273 # the section will always be named "Uninstall"\r
274 section "Uninstall"\r
275 \r
276         # always delete uninstaller first\r
277         delete $INSTDIR\uninstaller@BIN_EXE@\r
278 \r
279         # delete installed libs\r
280         delete $INSTDIR\lib\libsimgrid.dll\r
281         delete $INSTDIR\lib\libsimgrid.def\r
282 \r
283         # delete installed bin\r
284         delete $INSTDIR\bin\colorize\r
285         delete $INSTDIR\bin\graphicator@BIN_EXE@\r
286         delete $INSTDIR\bin\simgrid_update_xml\r
287         delete $INSTDIR\bin\smpicc\r
288         delete $INSTDIR\bin\smpif2c\r
289         delete $INSTDIR\bin\smpiff\r
290         delete $INSTDIR\bin\smpirun\r
291         delete $INSTDIR\bin\tesh\r
292         \r
293         # delete installed headers\r
294         delete $INSTDIR\include\xbt.h\r
295         delete $INSTDIR\include\simgrid_config.h\r
296         delete $INSTDIR\include\xbt\misc.h\r
297         delete $INSTDIR\include\xbt\sysdep.h\r
298         delete $INSTDIR\include\xbt\virtu.h\r
299         delete $INSTDIR\include\xbt\str.h\r
300         delete $INSTDIR\include\xbt\strbuff.h\r
301         delete $INSTDIR\include\xbt\hash.h\r
302         delete $INSTDIR\include\xbt\function_types.h\r
303         delete $INSTDIR\include\xbt\asserts.h \r
304         delete $INSTDIR\include\xbt\ex.h\r
305         delete $INSTDIR\include\xbt\log.h\r
306         delete $INSTDIR\include\xbt\module.h\r
307         delete $INSTDIR\include\xbt\mallocator.h\r
308         delete $INSTDIR\include\xbt\dynar.h\r
309         delete $INSTDIR\include\xbt\dict.h\r
310         delete $INSTDIR\include\xbt\set.h\r
311         delete $INSTDIR\include\xbt\heap.h\r
312         delete $INSTDIR\include\xbt\graph.h\r
313         delete $INSTDIR\include\xbt\fifo.h\r
314         delete $INSTDIR\include\xbt\swag.h\r
315         delete $INSTDIR\include\xbt\lib.h\r
316         delete $INSTDIR\include\xbt\matrix.h\r
317         delete $INSTDIR\include\xbt\peer.h\r
318         delete $INSTDIR\include\xbt\config.h\r
319         delete $INSTDIR\include\xbt\cunit.h\r
320         delete $INSTDIR\include\xbt\graphxml_parse.h\r
321         delete $INSTDIR\include\xbt\graphxml.h\r
322         delete $INSTDIR\include\xbt\time.h\r
323         delete $INSTDIR\include\xbt\synchro.h\r
324         delete $INSTDIR\include\xbt\synchro_core.h\r
325         delete $INSTDIR\include\xbt\queue.h\r
326         delete $INSTDIR\include\xbt\setset.h\r
327         delete $INSTDIR\include\xbt\mmalloc.h\r
328         delete $INSTDIR\include\xbt\replay_trace_reader.h\r
329         delete $INSTDIR\include\xbt\parmap.h\r
330         delete $INSTDIR\include\xbt\socket.h\r
331         delete $INSTDIR\include\xbt\file_stat.h\r
332 \r
333         delete $INSTDIR\include\simgrid\platf.h\r
334         delete $INSTDIR\include\simgrid\modelchecker.h\r
335         delete $INSTDIR\include\simgrid\simix.h\r
336 \r
337         delete $INSTDIR\include\msg\msg.h\r
338         delete $INSTDIR\include\msg\datatypes.h \r
339         delete $INSTDIR\include\simdag\simdag.h\r
340         delete $INSTDIR\include\simdag\datatypes.h\r
341         delete $INSTDIR\include\smpi\smpi.h\r
342         delete $INSTDIR\include\smpi\mpi.h\r
343         delete $INSTDIR\include\smpi\mpif.h\r
344         delete $INSTDIR\include\smpi\smpi_cocci.h\r
345         delete $INSTDIR\include\smpi\smpi_main.h\r
346         delete $INSTDIR\include\smpi\smpif.h\r
347         delete $INSTDIR\include\surf\surfxml_parse.h\r
348         delete $INSTDIR\include\surf\simgrid_dtd.h\r
349         delete $INSTDIR\include\surf\surf_routing.h\r
350         delete $INSTDIR\include\instr\instr.h\r
351                 \r
352         # delete EXTRA FILES\r
353         delete $INSTDIR\AUTHORS\r
354         delete $INSTDIR\Changelog\r
355         delete $INSTDIR\COPYING\r
356         delete $INSTDIR\LICENSE-LGPL-2.1\r
357         delete $INSTDIR\NEWS\r
358         \r
359         # now delete directories\r
360         RMDir  "$INSTDIR\bin"\r
361         RMDir  "$INSTDIR\lib"\r
362         RMDir  "$INSTDIR\include\simix"\r
363         RMDir  "$INSTDIR\include\instr"\r
364         RMDir  "$INSTDIR\include\surf"\r
365         RMDir  "$INSTDIR\include\smpi"\r
366         RMDir  "$INSTDIR\include\simdag"\r
367         RMDir  "$INSTDIR\include\msg"\r
368         RMDir  "$INSTDIR\include\mc"\r
369         RMDir  "$INSTDIR\include\xbt"\r
370         RMDir  "$INSTDIR\include"\r
371         RMDir  /r "$INSTDIR\doc"\r
372         RMDir  /r "$INSTDIR\examples"\r
373         RMDir  /r "$SMPROGRAMS\SimGrid @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@"\r
374         \r
375         # Delete variable\r
376         DeleteRegValue ${env_hkcu} SIMGRID_ROOT\r
377         DeleteRegValue ${env_hkcu} SIMGRID_VERSION\r
378     DeleteRegKey HKCU "SOFTWARE\SimGrid"\r
379     \r
380     # delete JAVA-bindings\r
381     RMDir /r "$INSTDIR\simgrid-java"\r
382     \r
383     # delete INSTDIR\r
384     RMDir  /r "$INSTDIR"\r
385     \r
386 # uninstall section end\r
387 sectionEnd\r