mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 18:47:37 -07:00
Start qBittorrent on Windows start up
This commit is contained in:
parent
c78604c7d3
commit
dd19f250ae
59 changed files with 128 additions and 0 deletions
12
dist/windows/installer.nsi
vendored
12
dist/windows/installer.nsi
vendored
|
@ -119,6 +119,18 @@ Section $(inst_startmenu) ;"Create Start Menu Shortcut"
|
|||
|
||||
SectionEnd
|
||||
|
||||
Section /o $(inst_startup) ;"Start qBittorrent on Windows start up"
|
||||
|
||||
!insertmacro UAC_AsUser_Call Function inst_startup_user ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR}
|
||||
|
||||
SectionEnd
|
||||
|
||||
Function inst_startup_user
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "qBittorrent" "$INSTDIR\qbittorrent.exe"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Section $(inst_torrent) ;"Open .torrent files with qBittorrent"
|
||||
|
||||
ReadRegStr $0 HKLM "Software\Classes\.torrent" ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue