uninstall-i686.nsi.in
1014 Bytes
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
# create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
section "Uninstall"
# Always delete uninstaller first
delete $INSTDIR\uninstaller.exe
# Set SMPROGRAMS and DESKTOP path
SetShellVarContext all
# now delete installed files
delete $INSTDIR\@PACKAGE@.exe
delete $SMPROGRAMS\@PACKAGE@.lnk
delete $DESKTOP\@PACKAGE@.lnk
RMDir /r "$INSTDIR\locale"
RMDir /r "$INSTDIR\share"
RMDir /r "$INSTDIR\etc"
RMDir /r "$INSTDIR\plugins"
RMDir /r "$INSTDIR\sdk"
RMDir /r "$INSTDIR\gtk2-runtime"
# Delete all files
delete "$INSTDIR\*.dll"
# Remove registry
DeleteRegKey HKLM "Software\@PACKAGE@"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@"
DeleteRegKey HKLM "Software\@PACKAGE@"
# Delete System libraries
delete $SYSDIR\libhllapi.dll
delete $SYSDIR\py3270.dll
# Delete extension libraries
delete "$PROGRAMFILES\ooRexx\rx3270.cls"
delete "$PROGRAMFILES\ooRexx\rx3270.dll"
RMDir /r "$INSTDIR"
sectionEnd