dont break on changesets with only directory renames
[tfs.git] / tfs.nsi
blobf25f093490b0345e278429053cb309000aab3f81
1 ; tfs.nsi
2 ;--------------------------------
4 !include "MUI.nsh"
6 !define OURNAME "Tf4Mono v0.5.1"
8 ; The name of the installer
9 Name "${OURNAME}"
11 ; The file to write
12 OutFile "tf4mono.exe"
14 ; The default installation directory
15 InstallDir $PROGRAMFILES\Tf4Mono
17 ;--------------------------------
19 ; Pages
21 !insertmacro MUI_PAGE_DIRECTORY
22 !insertmacro MUI_PAGE_INSTFILES
24 !insertmacro MUI_UNPAGE_CONFIRM
25 !insertmacro MUI_UNPAGE_INSTFILES
27 ;--------------------------------
29 !insertmacro MUI_LANGUAGE "English"
31 ; The stuff to install
32 Section "" ;No components page, name is not important
34 ; Set output path to the installation directory.
35 SetOutPath $INSTDIR
37 ; Put file there
38 File class\lib\net_2_0\Microsoft.TeamFoundation.Client.dll
39 File class\lib\net_2_0\Microsoft.TeamFoundation.Common.dll
40 File class\lib\net_2_0\Microsoft.TeamFoundation.dll
41 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Client.dll
42 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Common.dll
43 File tools\tf\tf.exe
45 ; not sure of a good way to do this yet...
46 File C:\Mono-1.2.4\lib\mono\2.0\Mono.GetOptions.dll
48 WriteUninstaller "$INSTDIR\Uninstall.exe"
50 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tf4Mono" "DisplayName" "Tf4Mono (remove only)"
51 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tf4Mono" "UninstallString" "$INSTDIR\Uninstall.exe"
53 SectionEnd ; end the section
55 Section "Uninstall"
57 Delete "$INSTDIR\Microsoft.TeamFoundation.Client.dll"
58 Delete "$INSTDIR\Microsoft.TeamFoundation.Common.dll"
59 Delete "$INSTDIR\Microsoft.TeamFoundation.dll"
60 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Client.dll"
61 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Common.dll"
62 Delete "$INSTDIR\tf.exe"
63 Delete "$INSTDIR\Uninstall.exe"
64 Delete "$INSTDIR\Mono.GetOptions.dll"
65 RMDir "$INSTDIR"
67 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Tf4Mono"
68 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Tf4Mono"
70 SectionEnd