1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
; makegitso.nsi
; ----------------
; Package Gitso for Windows using NSIS
;
; Copyright 2008 - 2010: Aaron Gerber and Derek Buranen
;
; Gitso is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; Gitso is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Gitso. If not, see <http://www.gnu.org/licenses/>.
;--------------------------------
!define VERSION "0.6"
Name "Gitso ${VERSION}"
Icon "./icon.ico"
UninstallIcon "./icon.ico"
OutFile "gitso-install.exe"
; The default installation directory
InstallDir $PROGRAMFILES\Gitso
; Registry key to check for directory (so if you install again, it will overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Gitso" "Install_Dir"
;--------------------------------
; Version Information
VIProductVersion "0.6.0.0"
VIAddVersionKey "ProductName" "Gitso"
VIAddVersionKey "Comments" "Gitso is to support others"
VIAddVersionKey "CompanyName" "http://code.google.com/p/gitso"
VIAddVersionKey "LegalCopyright" "GPL 3"
VIAddVersionKey "FileDescription" "Gitso"
VIAddVersionKey "FileVersion" "${VERSION}"
;--------------------------------
;--------------------------------
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;--------------------------------
Section "Gitso"
SectionIn RO
SetOutPath $INSTDIR
; Write the installation path into the registry
; Write the uninstall keys for Windows
WriteRegStr HKLM SOFTWARE\Gitso "Install_Dir" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "DisplayName" "Gitso"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "NoRepair" 1
WriteUninstaller "uninstall.exe"
File ".\hosts.txt"
File ".\icon.ico"
File ".\icon.png"
File ".\COPYING"
File ".\dist\Gitso.exe"
File ".\dist\icon.ico"
File ".\dist\library.zip"
File ".\dist\msvcp71.dll"
File ".\dist\MSVCR71.dll"
File ".\dist\python25.dll"
File ".\dist\pywintypes25.dll"
File ".\dist\bz2.pyd"
File ".\dist\win32api.pyd"
File ".\dist\_ssl.pyd"
File ".\dist\_socket.pyd"
File ".\dist\select.pyd"
File ".\dist\unicodedata.pyd"
File ".\dist\w9xpopen.exe"
File ".\dist\wx._controls_.pyd"
File ".\dist\wx._core_.pyd"
File ".\dist\wx._gdi_.pyd"
File ".\dist\wx._misc_.pyd"
File ".\dist\wx._windows_.pyd"
File ".\dist\wxbase28uh_net_vc.dll"
File ".\dist\wxbase28uh_vc.dll"
File ".\dist\wxmsw28uh_adv_vc.dll"
File ".\dist\wxmsw28uh_core_vc.dll"
File ".\dist\wxmsw28uh_html_vc.dll"
File ".\arch\win32\tightVNC_LICENCE.txt"
File ".\arch\win32\tightVNC_COPYING.txt"
File ".\arch\win32\tightVNC_README.txt"
File ".\arch\win32\VNCHooks_COPYING.txt"
File ".\arch\win32\msvcr71_README.txt"
;start menu items
CreateDirectory "$SMPROGRAMS\Gitso"
CreateShortCut "$SMPROGRAMS\Gitso\Gitso.lnk" "$INSTDIR\Gitso.exe" "" "$INSTDIR\icon.ico" 0
File ".\arch\win32\vncviewer.exe"
File ".\arch\win32\WinVNC.exe"
File ".\arch\win32\VNCHooks.dll"
;Registry tweaks to TightVNC's server
WriteRegDWORD HKCU "Software\ORL\WinVNC3" "RemoveWallpaper" 1
WriteRegDWORD HKCU "Software\ORL\WinVNC3" "EnableFileTransfers" 1
;set default password to something so WinVNC.exe doesn't complain about having no password
WriteRegBin HKCU "SOFTWARE\ORL\WinVNC3" "Password" "238f16962aeb734e"
WriteRegBin HKCU "SOFTWARE\ORL\WinVNC3" "PasswordViewOnly" "238f16962aeb734e"
;Try to set it for all users, but I'm not positive this works
WriteRegDWORD HKLM "Software\ORL\WinVNC3" "RemoveWallpaper" 1
WriteRegDWORD HKLM "Software\ORL\WinVNC3" "EnableFileTransfers" 1
WriteRegBin HKLM "SOFTWARE\ORL\WinVNC3" "Password" "238f16962aeb734e"
WriteRegBin HKLM "SOFTWARE\ORL\WinVNC3" "PasswordViewOnly" "b0f0ac1997133bc9"
SectionEnd
; Uninstall
;------------------------------------------------------
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso"
; Remove files and uninstaller
Delete $INSTDIR\vncviewer.exe
Delete $INSTDIR\VNCHooks.dll
Delete $INSTDIR\WinVNC.exe
; Remove shortcuts and folder
RMDir /r "$SMPROGRAMS\Gitso"
RMDir /r $INSTDIR
SectionEnd
|