-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompletedir.nsi
24 lines (22 loc) · 965 Bytes
/
completedir.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Written by Bram Cohen
# see LICENSE.txt for license information
Outfile completedir.exe
Name completedir
SilentInstall silent
InstallDir "$PROGRAMFILES\completedir\"
Section "Install"
WriteUninstaller "$INSTDIR\uninstall.exe"
SetOutPath $INSTDIR
File btcompletedirgui.exe
File *.pyd
File *.dll
CreateShortCut "$STARTMENU\Programs\completedir.lnk" "$INSTDIR\btcompletedirgui.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\CompleteDir" "DisplayName" "BitTorrent complete dir 1.0.1"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\CompleteDir" "UninstallString" '"$INSTDIR\uninstall.exe"'
MessageBox MB_OK "Complete dir has been successfully installed! Run it under the Programs in the Start Menu."
SectionEnd
Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\CompleteDir"
Delete "$STARTMENU\Programs\completedir.lnk"
RMDir /r "$INSTDIR"
SectionEnd