[gaim-migrate @ 3853]
[pidgin-git.git] / gaim-installer.nsi
blob4ee9b94c927b40e0d7c1eb6f3e3dec0eb711325e
1 ; Installer script for win32 Gaim
2 ; Generated NSIS script file (generated by makensitemplate.phtml 0.21)
3 ; Herman on Sep 11 02 @ 21:52
5 ; NOTE: this .NSI script is designed for NSIS v1.8+
7 Name "Gaim 0.60 alpha 2 (Win32)"
8 OutFile "Install-Gaim0.60a2.exe"
9 Icon .\pixmaps\gaim-install.ico
11 ; Some default compiler settings (uncomment and change at will):
12 ; SetCompress auto ; (can be off or force)
13 ; SetDatablockOptimize on ; (can be off)
14 ; CRCCheck on ; (can be off)
15 ; AutoCloseWindow false ; (can be true for the window go away automatically at end)
16 ; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
17 ; SetDateSave off ; (can be on to have files restored to their orginal date)
19 InstallDir "$PROGRAMFILES\Gaim"
20 InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" ""
21 DirShow show ; (make this hide to not let the user change it)
22 DirText "Select the directory to install Gaim in:"
25 Section "" ; (default section)
26 SetOutPath "$INSTDIR"
27 ; add files / whatever that need to be installed here.
28 File /r .\win32-install-dir\*.*
29 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Gaim" "" "$INSTDIR"
30 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "DisplayName" "Gaim (remove only)"
31 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" "UninstallString" '"$INSTDIR\uninst.exe"'
32 ; write out uninstaller
33 WriteUninstaller "$INSTDIR\uninst.exe"
34 SectionEnd ; end of default section
36 Section "Gaim Start Menu Group"
37 SetOutPath "$SMPROGRAMS\Gaim"
38 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \
39 "$INSTDIR\gaim.exe"
40 CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \
41 "$INSTDIR\uninst.exe"
42 SectionEnd
46 ; begin uninstall settings/section
47 UninstallText "This will uninstall Gaim from your system"
49 Section Uninstall
50 ; add delete commands to delete whatever files/registry keys/etc you installed here.
51 RMDir /r "$SMPROGRAMS\Gaim"
52 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Gaim"
53 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
54 RMDir /r "$INSTDIR"
55 SectionEnd ; end of uninstall section
57 ; eof