gaim-installer.nsi

Sat, 02 Nov 2002 01:30:20 +0000

author
Herman Bloggs <herman@bluedigits.com>
date
Sat, 02 Nov 2002 01:30:20 +0000
changeset 3853
510f497172b5
parent 3849
0c874eedd95c
child 3860
c6f585e5fa19
permissions
-rw-r--r--

[gaim-migrate @ 4005]
Gtkspell/aspell update

3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 ; Installer script for win32 Gaim
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
2 ; Generated NSIS script file (generated by makensitemplate.phtml 0.21)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 ; Herman on Sep 11 02 @ 21:52
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
5 ; NOTE: this .NSI script is designed for NSIS v1.8+
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6
3849
0c874eedd95c [gaim-migrate @ 4001]
Rob Flynn <gaim@robflynn.com>
parents: 3630
diff changeset
7 Name "Gaim 0.60 alpha 3 (Win32)"
0c874eedd95c [gaim-migrate @ 4001]
Rob Flynn <gaim@robflynn.com>
parents: 3630
diff changeset
8 OutFile "gaim-0.60-alpha3.exe"
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
9 Icon .\pixmaps\gaim-install.ico
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
10
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
11 ; Some default compiler settings (uncomment and change at will):
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
12 ; SetCompress auto ; (can be off or force)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
13 ; SetDatablockOptimize on ; (can be off)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
14 ; CRCCheck on ; (can be off)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
15 ; AutoCloseWindow false ; (can be true for the window go away automatically at end)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
16 ; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
17 ; SetDateSave off ; (can be on to have files restored to their orginal date)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
18
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
19 InstallDir "$PROGRAMFILES\Gaim"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" ""
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
21 DirShow show ; (make this hide to not let the user change it)
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
22 DirText "Select the directory to install Gaim in:"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
23
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
24 Section "Aspell"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
25 SetOutPath $OUTDIR
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
26 File ..\win32-dev\aspell-15\bin\aspell-0.50.2.exe
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
27 ExecWait "$OUTDIR\aspell-0.50.2.exe"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
28 SectionEnd
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
29
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
30 Section "" ; (default section)
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
31 SetOutPath "$INSTDIR"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
32 ; Gaim files
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
33 File /r .\win32-install-dir\*.*
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
34 ; Gaim Registry Settings
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
35 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
36 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
37 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\gaim-uninst.exe"'
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
38 ; Set App path to include aspell dir
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
39 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "" "$INSTDIR\gaim.exe"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
40 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" "Path" "$PROGRAMFILES\aspell"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
41 ; Increase refrence count for aspell dlls
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
42 Push "C:\Program Files\aspell\aspell-15.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
43 Call AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
44 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
45 Call AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
46 Push "C:\Program Files\aspell\pspell-15.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
47 Call AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
48
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
49 ; write out uninstaller
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
50 WriteUninstaller "$INSTDIR\gaim-uninst.exe"
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
51 SectionEnd ; end of default section
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
52
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
53 Section "Gaim Start Menu Group"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
54 SetOutPath "$SMPROGRAMS\Gaim"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
55 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
56 "$INSTDIR\gaim.exe"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
57 CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
58 "$INSTDIR\gaim-uninst.exe"
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
59 SectionEnd
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
60
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
61
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
62
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
63 ; begin uninstall settings/section
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
64 UninstallText "This will uninstall Gaim from your system"
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
65
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
66 Section Uninstall
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
67 ; Delete Gaim Dir
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
68 RMDir /r "$INSTDIR"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
69 RMDir /r "$SMPROGRAMS\Gaim"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
70
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
71 ; Delete Aspell Files
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
72 ;RMDir /r $PROGRAMFILES\aspell\data
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
73 ;RMDir /r $PROGRAMFILES\aspell\dict
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
74 ;Delete $PROGRAMFILES\aspell\aspell-15.dll
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
75 ;Delete $PROGRAMFILES\aspell\aspell-common-0-50-2.dll
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
76 ;Delete $PROGRAMFILES\aspell\pspell-15.dll
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
77
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
78 ; Delete Gaim Registry Settings
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
79 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
80 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
81 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
82
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
83 ; Decrease refrence count for Aspell dlls
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
84 Push "C:\Program Files\aspell\aspell-15.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
85 Call un.RemoveSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
86 Push "C:\Program Files\aspell\aspell-common-0-50-2.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
87 Call un.RemoveSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
88 Push "C:\Program Files\aspell\pspell-15.dll"
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
89 Call un.RemoveSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
90 ; Delete aspell dir if its empty
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
91 RMDir "C:\Program Files\aspell"
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
92 SectionEnd ; end of uninstall section
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
93
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
94
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
95 ; AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
96 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
97 ; Increments a shared DLLs reference count.
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
98 ; Use by passing one item on the stack (the full path of the DLL).
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
99 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
100 ; Usage:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
101 ; Push $SYSDIR\myDll.dll
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
102 ; Call AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
103 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
104
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
105 Function AddSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
106 Exch $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
107 Push $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
108 ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
109 IntOp $R0 $R0 + 1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
110 WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
111 Pop $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
112 Pop $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
113 FunctionEnd
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
114
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
115 ; un.RemoveSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
116 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
117 ; Decrements a shared DLLs reference count, and removes if necessary.
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
118 ; Use by passing one item on the stack (the full path of the DLL).
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
119 ; Note: for use in the main installer (not the uninstaller), rename the
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
120 ; function to RemoveSharedDLL.
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
121 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
122 ; Usage:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
123 ; Push $SYSDIR\myDll.dll
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
124 ; Call un.RemoveShareDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
125 ;
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
126
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
127 Function un.RemoveSharedDLL
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
128 Exch $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
129 Push $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
130 ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
131 StrCmp $R0 "" remove
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
132 IntOp $R0 $R0 - 1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
133 IntCmp $R0 0 rk rk uk
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
134 rk:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
135 DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
136 goto Remove
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
137 uk:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
138 WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
139 Goto noremove
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
140 remove:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
141 Delete /REBOOTOK $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
142 noremove:
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
143 Pop $R0
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
144 Pop $R1
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
145 FunctionEnd
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
146
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
147 ; eof
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
148

mercurial