BUGFIX: tf online <path> shouldn't croak if <path> is an add awaiting
[tfs.git] / tfs.nsi
blob984f2eb1aa4c6c116a7f7a62d7617d9d77260258
1 ; tfs.nsi
2 ;--------------------------------
4 !include "MUI.nsh"
6 !define OURNAME "OpenTF v0.5.3"
8 ; The name of the installer
9 Name "${OURNAME}"
11 ; The file to write
12 OutFile "opentf-0.5.3.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\Microsoft.TeamFoundation.Client.dll
40 File class\lib\net_2_0\Microsoft.TeamFoundation.Common.dll
41 File class\lib\net_2_0\Microsoft.TeamFoundation.dll
42 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Client.dll
43 File class\lib\net_2_0\Microsoft.TeamFoundation.VersionControl.Common.dll
44 File tools\opentf\bin\opentf.exe
45 File /oname=ChangeLog.txt ChangeLog
47 WriteUninstaller "$INSTDIR\Uninstall.exe"
49 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "DisplayName" "OpenTF (remove only)"
50 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "UninstallString" "$INSTDIR\Uninstall.exe"
52 SectionEnd ; end the section
54 Section "Uninstall"
56 Delete "$INSTDIR\Microsoft.TeamFoundation.Client.dll"
57 Delete "$INSTDIR\Microsoft.TeamFoundation.Common.dll"
58 Delete "$INSTDIR\Microsoft.TeamFoundation.dll"
59 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Client.dll"
60 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Common.dll"
61 Delete "$INSTDIR\opentf.exe"
62 Delete "$INSTDIR\Uninstall.exe"
63 Delete "$INSTDIR\Mono.GetOptions.dll"
64 Delete "$INSTDIR\ChangeLog.txt"
66 RMDir "$INSTDIR"
68 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\OpenTF"
69 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF"
71 SectionEnd