2 ;--------------------------------
6 !define OURNAME
"OpenTF v0.5.3"
8 ; The name of the installer
12 OutFile "opentf-0.5.3.exe"
14 ; The default installation directory
15 InstallDir $PROGRAMFILES\OpenTF
17 ;--------------------------------
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.
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
46 WriteUninstaller "$INSTDIR\Uninstall.exe"
48 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "DisplayName" "OpenTF (remove only)"
49 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF" "UninstallString" "$INSTDIR\Uninstall.exe"
51 SectionEnd ; end the section
55 Delete "$INSTDIR\Microsoft.TeamFoundation.Client.dll"
56 Delete "$INSTDIR\Microsoft.TeamFoundation.Common.dll"
57 Delete "$INSTDIR\Microsoft.TeamFoundation.dll"
58 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Client.dll"
59 Delete "$INSTDIR\Microsoft.TeamFoundation.VersionControl.Common.dll"
60 Delete "$INSTDIR\opentf.exe"
61 Delete "$INSTDIR\Uninstall.exe"
62 Delete "$INSTDIR\Mono.GetOptions.dll"
65 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\OpenTF"
66 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTF"