show the difference between two versions for a specified path
[tfs.git] / tfs.nsi
blobdfba73d9b3747671dc6491bd2f38f386ec253078
1 ; tfs.nsi
2 ;--------------------------------
4 !include "MUI.nsh"
6 !define OURNAME "OpenTF v0.6.0"
8 ; The name of the installer
9 Name "${OURNAME}"
11 ; The file to write
12 OutFile "opentf-0.6.0.exe"
14 ; The default installation directory
15 InstallDir $PROGRAMFILES\OpenTF
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\Mono.GetOptions.dll
39 File class\lib\net_2_0\OpenTF.Common.dll
40 File class\lib\net_2_0\Microsoft.TeamFoundation.Client.dll
41 File class\lib\net_2_0\Microsoft.TeamFoundation.Common.dll
42 File class\lib\net_2_0\Microsoft.TeamFoundation.dll
43 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Client.dll
44 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Common.dll
45 File tools\tfsbot\bin\tfsbot.exe
46 File tools\tfsbot\tfsbot.exe.config
47 File tools\opentf\bin\opentf.exe
48 File /oname=ChangeLog.txt ChangeLog
50 WriteUninstaller "$INSTDIR\Uninstall.exe"
52 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "DisplayName" "OpenTF (remove only)"
53 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "UninstallString" "$INSTDIR\Uninstall.exe"
55 SectionEnd ; end the section
57 Section "Uninstall"
59 Delete "$INSTDIR\Microsoft.TeamFoundation.Client.dll"
60 Delete "$INSTDIR\Microsoft.TeamFoundation.Common.dll"
61 Delete "$INSTDIR\Microsoft.TeamFoundation.dll"
62 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Client.dll"
63 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Common.dll"
64 Delete "$INSTDIR\tfsbot.exe"
65 Delete "$INSTDIR\tfsbot.exe.config"
66 Delete "$INSTDIR\opentf.exe"
67 Delete "$INSTDIR\Uninstall.exe"
68 Delete "$INSTDIR\Mono.GetOptions.dll"
69 Delete "$INSTDIR\OpenTF.Common.dll"
70 Delete "$INSTDIR\ChangeLog.txt"
72 RMDir "$INSTDIR"
74 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\OpenTF"
75 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF"
77 SectionEnd