1 theshadow 1.32 OutFile "BitTorrent-experimental-S-5.8.8-w32install.exe"
2 Name "BitTorrent S-5.8.8 (SHAD0W's Experimental)"
|
3 theshadow 1.17 SetCompressor bzip2
4 InstallDir "$PROGRAMFILES\BitTorrent"
5 Icon "icon_bt.ico"
6 UninstallIcon "icon_done.ico"
7 InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\btdownloadgui.exe" ""
|
8 theshadow 1.32 DirText "Setup will install BitTorrent S-5.8.8 (SHAD0W's Experimental) in the following folder.$\r$\n$\r$\nTo install in a different folder, click Browse and select another folder."
|
9 theshadow 1.17 ShowInstDetails show
10 ShowUnInstDetails show
11
12 Section "MainGroup" SEC01
13 SetOutPath "$INSTDIR"
|
14 theshadow 1.24 IfFileExists "$INSTDIR\_psyco.pyd" +1 +2
15 delete "$INSTDIR\_psyco.pyd"
|
16 theshadow 1.17 SetOverwrite on
17 File "btdownloadgui.exe"
18 File "python23.dll"
19 File "wxmsw24h.dll"
20 File "_socket.pyd"
21 File "_sre.pyd"
22 File "_ssl.pyd"
23 File "_winreg.pyd"
24 File "select.pyd"
25 File "wxc.pyd"
26 File "zlib.pyd"
27 File "icon_bt.ico"
28 File "icon_done.ico"
|
29 theshadow 1.24 CreateDirectory "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)"
30 CreateShortCut "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)\BitTorrent (SHAD0W's Experimental).lnk" "$INSTDIR\btdownloadgui.exe"
31 # CreateShortCut "$DESKTOP\BitTorrent (SHAD0W's Experimental).lnk" "$INSTDIR\btdownloadgui.exe"
32 CreateShortCut "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)\Uninstall.lnk" "$INSTDIR\uninst.exe"
33 SetOverwrite off
|
34 theshadow 1.17 File "white.ico"
35 File "black.ico"
36 File "black1.ico"
37 File "red.ico"
38 File "yellow.ico"
39 File "yellow1.ico"
40 File "blue.ico"
41 File "green.ico"
42 File "green1.ico"
43 File "alloc.gif"
44 SectionEnd
|
45 theshadow 1.1
|
46 theshadow 1.17 Section -Post
|
47 theshadow 1.1 WriteRegStr HKCR .torrent "" bittorrent
48 WriteRegStr HKCR .torrent "Content Type" application/x-bittorrent
49 WriteRegStr HKCR "MIME\Database\Content Type\application/x-bittorrent" Extension .torrent
50 WriteRegStr HKCR bittorrent "" "TORRENT File"
51 WriteRegBin HKCR bittorrent EditFlags 00000100
52 WriteRegStr HKCR "bittorrent\shell" "" open
53 WriteRegStr HKCR "bittorrent\shell\open\command" "" `"$INSTDIR\btdownloadgui.exe" --responsefile "%1"`
|
54 theshadow 1.17
55 WriteUninstaller "$INSTDIR\uninst.exe"
56 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\btdownloadgui.exe" "" "$INSTDIR\btdownloadgui.exe"
|
57 theshadow 1.32 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "DisplayName" "BitTorrent S-5.8.8 (SHAD0W's Experimental)"
|
58 theshadow 1.17 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "UninstallString" "$INSTDIR\uninst.exe"
59 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "DisplayIcon" "$INSTDIR\btdownloadgui.exe"
|
60 theshadow 1.32 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "DisplayVersion" "S-5.8.8"
|
61 theshadow 1.17 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "URLInfoAbout" "http://bt.degreez.net/"
62 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)" "Publisher" "John Hoffman"
|
63 theshadow 1.1 SectionEnd
64
|
65 theshadow 1.17
66 Function un.onUninstSuccess
67 HideWindow
|
68 theshadow 1.32 MessageBox MB_ICONINFORMATION|MB_OK "BitTorrent S-5.8.8 (SHAD0W's Experimental) was successfully removed from your computer."
|
69 theshadow 1.17 FunctionEnd
70
71 Function un.onInit
|
72 theshadow 1.32 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove BitTorrent S-5.8.8 (SHAD0W's Experimental) and all of its components?" IDYES +2
|
73 theshadow 1.17 Abort
74 FunctionEnd
75
76 Section Uninstall
|
77 theshadow 1.18 Delete "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)\BitTorrent (SHAD0W's Experimental).lnk"
78 # Delete "$DESKTOP\BitTorrent (SHAD0W's Experimental).lnk"
|
79 theshadow 1.17 Delete "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)\Uninstall.lnk"
|
80 theshadow 1.18 RMDir "$SMPROGRAMS\BitTorrent (SHAD0W's Experimental)"
|
81 theshadow 1.17 DeleteRegKey HKCU software\bittorrent
82
83 push $1
84 ReadRegStr $1 HKCR "bittorrent\shell\open\command" ""
85 StrCmp $1 `"$INSTDIR\btdownloadgui.exe" --responsefile "%1"` 0 regnotempty
86 DeleteRegKey HKCR bittorrent\shell\open
87 DeleteRegKey /ifempty HKCR bittorrent\shell
88 DeleteRegKey /ifempty HKCR bittorrent
89 ReadRegStr $1 HKCR bittorrent\shell ""
90 StrCmp $1 "" 0 regnotempty
|
91 theshadow 1.1 DeleteRegKey HKCR .torrent
92 DeleteRegKey HKCR "MIME\Database\Content Type\application/x-bittorrent"
|
93 theshadow 1.17 regnotempty:
94 pop $1
|
95 theshadow 1.1 RMDir /r "$INSTDIR"
|
96 theshadow 1.17
97 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent (SHAD0W's Experimental)"
98 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\btdownloadgui.exe"
99 SetAutoClose true
|
100 theshadow 1.1 SectionEnd
|
101 theshadow 1.17
|