Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src/kdiff3.nsi @ 32:734a2093deab
Implementation of the Intergration into Explorer
author | friseb123 |
---|---|
date | Sat, 11 Oct 2003 18:03:52 +0000 |
parents | 6daffd081b7e |
children | ec4d236b9d1b |
comparison
equal
deleted
inserted
replaced
31:c3f2fd864e45 | 32:734a2093deab |
---|---|
11 !endif | 11 !endif |
12 !ifndef WINDOWS_DIR | 12 !ifndef WINDOWS_DIR |
13 !define WINDOWS_DIR "c:\windows" | 13 !define WINDOWS_DIR "c:\windows" |
14 !endif | 14 !endif |
15 !include "MUI.nsh" | 15 !include "MUI.nsh" |
16 | |
17 | |
16 | 18 |
17 ;-------------------------------- | 19 ;-------------------------------- |
18 ;Configuration | 20 ;Configuration |
19 InstallDir "$PROGRAMFILES\KDiff3" | 21 InstallDir "$PROGRAMFILES\KDiff3" |
20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${MUI_PRODUCT}" "" | 22 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${MUI_PRODUCT}" "" |
155 SetOutPath "$INSTDIR" | 157 SetOutPath "$INSTDIR" |
156 ; add files / whatever that need to be installed here. | 158 ; add files / whatever that need to be installed here. |
157 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\${MUI_PRODUCT}" "" "$INSTDIR" | 159 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\${MUI_PRODUCT}" "" "$INSTDIR" |
158 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "DisplayName" "${MUI_PRODUCT} (remove only)" | 160 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "DisplayName" "${MUI_PRODUCT} (remove only)" |
159 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "UninstallString" '"$INSTDIR\uninst.exe"' | 161 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "UninstallString" '"$INSTDIR\uninst.exe"' |
162 DetailPrint "Writing files" | |
160 File "kdiff3.exe" | 163 File "kdiff3.exe" |
164 File "..\binaries\windows\diff.exe" | |
161 File "..\COPYING" | 165 File "..\COPYING" |
162 File "${WINDOWS_DIR}\system32\msvcp70.dll" | 166 File "${WINDOWS_DIR}\system32\msvcp70.dll" |
163 File "${WINDOWS_DIR}\system32\msvcr70.dll" | 167 File "${WINDOWS_DIR}\system32\msvcr70.dll" |
164 File "${QTDIR}\lib\qt-mt*.dll" | 168 File "${QTDIR}\lib\qt-mt*.dll" |
165 ; File "*.qm" | 169 ; File "*.qm" |
166 | 170 |
167 !insertmacro MUI_STARTMENU_WRITE_BEGIN | 171 !insertmacro MUI_STARTMENU_WRITE_BEGIN |
168 | 172 |
169 ;Create shortcuts | 173 DetailPrint "Creating shortcuts" |
170 CreateDirectory "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}" | 174 CreateDirectory "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}" |
171 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\KDiff3.lnk" "$INSTDIR\kdiff3.exe" | 175 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\KDiff3.lnk" "$INSTDIR\kdiff3.exe" |
172 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\Uninstal.lnk" "$INSTDIR\uninst.exe" | 176 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\Uninstal.lnk" "$INSTDIR\uninst.exe" |
173 | 177 |
174 !insertmacro MUI_STARTMENU_WRITE_END | 178 !insertmacro MUI_STARTMENU_WRITE_END |
178 WriteUninstaller "$INSTDIR\uninst.exe" | 182 WriteUninstaller "$INSTDIR\uninst.exe" |
179 | 183 |
180 | 184 |
181 ;Store install folder | 185 ;Store install folder |
182 WriteRegStr HKCU "Software\${MUI_PRODUCT}" "" $INSTDIR | 186 WriteRegStr HKCU "Software\${MUI_PRODUCT}" "" $INSTDIR |
183 | 187 CreateShortCut "$QUICKLAUNCH\KDiff3.lnk" "$INSTDIR\kdiff3.exe" |
188 | |
184 SectionEnd | 189 SectionEnd |
185 | 190 |
186 Section "Documentation" | 191 Section "Documentation" |
187 | 192 |
193 DetailPrint "Writing the documentation" | |
188 SetOutPath "$INSTDIR" | 194 SetOutPath "$INSTDIR" |
189 File /r tmp\kdiff3.sourceforge.net\doc | 195 File /r tmp\kdiff3.sourceforge.net\doc |
190 SetOutPath "$INSTDIR" | 196 SetOutPath "$INSTDIR" |
191 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\Documentation.lnk" "$INSTDIR\doc\index.html" | 197 CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\Documentation.lnk" "$INSTDIR\doc\index.html" |
192 | 198 WriteRegStr HKCR "Application\kdiff3.exe\shell\open\command" "" '"$INSTDIR\kdiff3.exe" "%1"' |
193 SectionEnd | 199 SectionEnd |
194 | 200 |
195 SubSection "Integration" | 201 SubSection "Integration" |
196 Section "WinCVS" | 202 Section "WinCVS" |
197 DetailPrint "Integration to WinCVS" | 203 DetailPrint "Integration to WinCVS" |
198 MessageBox MB_OK "Please close WinCVS" | 204 MessageBox MB_OK "Please close WinCVS" |
199 WriteRegStr HKCU "Software\WinCvs\wincvs\CVS settings" "P_Extdiff" '"$INSTDIR\kdiff3.exe"' | 205 WriteRegStr HKCU "Software\WinCvs\wincvs\CVS settings" "P_Extdiff" '"$INSTDIR\kdiff3.exe"' |
200 WriteRegBin HKCU "Software\WinCvs\wincvs\CVS settings" "P_DiffUseExtDiff" 01 | 206 WriteRegBin HKCU "Software\WinCvs\wincvs\CVS settings" "P_DiffUseExtDiff" 01 |
201 | 207 |
202 SectionEnd | 208 SectionEnd |
209 Section "Explorer" | |
210 DetailPrint "Integration to Explorer" | |
211 WriteRegStr HKCR "Directory\shell}\KDiff3" "" '&KDiff3' | |
212 WriteRegStr HKCR "Directory\shell\KDiff3\command" "" '"$INSTDIR\kdiff3.exe" "%1"' | |
213 CreateShortCut "$SMPROGRAMS\..\..\SendTo\KDiff3.lnk" '"$INSTDIR\kdiff3.exe"' | |
214 SectionEnd | |
203 SubSectionEnd | 215 SubSectionEnd |
204 | 216 |
205 ;Display the Finish header | 217 ;Display the Finish header |
206 ;Insert this macro after the sections if you are not using a finish page | 218 ;Insert this macro after the sections if you are not using a finish page |
207 !insertmacro MUI_SECTIONS_FINISHHEADER | 219 !insertmacro MUI_SECTIONS_FINISHHEADER |
248 | 260 |
249 noshortcuts: | 261 noshortcuts: |
250 | 262 |
251 RMDir "$INSTDIR" | 263 RMDir "$INSTDIR" |
252 Delete "$INSTDIR\uninst.exe" | 264 Delete "$INSTDIR\uninst.exe" |
253 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" | 265 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" |
254 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\oldb_auto_file\shell\open\command" | 266 |
255 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\osio_auto_file\shell\open\command" | 267 Delete "$QUICKLAUNCH\KDiff3.lnk" |
256 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\FriSebSoftware\KDiff3" | 268 RMDir /r "$INSTDIR" |
257 DeleteRegKey HKEY_CLASSES_ROOT ".oldb" | 269 DetailPrint "Integration to Explorer" |
258 DeleteRegKey HKEY_CLASSES_ROOT ".osio" | 270 DeleteRegKey HKCR "Directory\shell\KDiff3\command" |
259 RMDir /r "$INSTDIR" | 271 DeleteRegKey HKCR "Directory\shell\KDiff3" |
260 !insertmacro MUI_UNFINISHHEADER | 272 Delete "$SMPROGRAMS\..\..\SendTo\KDiff3.lnk" |
273 | |
274 !insertmacro MUI_UNFINISHHEADER | |
261 | 275 |
262 SectionEnd | 276 SectionEnd |
263 | 277 |
264 ;-------------------------------- | 278 ;-------------------------------- |
265 ;Uninstaller Functions | 279 ;Uninstaller Functions |