Page 2 of 2

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 11:33 am
by zeomal
Just a question, Starshine, does the same problem come up while using an account other than the one in which you are having a problem now?

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 11:50 am
by ciaobaby
The issue is probably NOT with qBitTorrent then, but with the permissions assigned to the key in the registry hive, evidently the  changes are not propagating to the "Machine Config" correctly when you shut the machine down. Running qBT with elevated permissions should allow this to happen but in this case appears to be failing.

Try:
Log on to the machine as the Administrator, (you may/will need to enable the account first http://technet.microsoft.com/en-gb/libr ... 10%29.aspx), then set  the file associations  so the changes should then propagate to the root keys in HKLM_LOCAL_MACHINE rather than remaining ephemeral in HKLM_CURRENT_USER.

Disable the Administrator user and reboot and login to your profile to see if the changes have become permanent and system wide.

OR
Booting into "Safe mode", then shut down and restart (not just restart) normally so the machine configuration data is refreshed can correct some of the annoying, but minor Windows 'issue' that creep in after the machine has been in use for several months.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 12:45 pm
by sledgehammer_999
Then let's work through the other checks the code performs before displaying that messagebox.

Is there a .torrent key under "HKEY_CLASSES_ROOT" in the registry? If yes, what is the value of its "default" entry?
Also under "HKEY_CLASSES_ROOT/qBittorrent/shell/open/command" what is the value of the "default" entry?
Under "HKEY_CLASSES_ROOT/qBittorrent/DefaultIcon" what is the value of the "default" entry?
Under "HKEY_CLASSES_ROOT/Magnet/shell/open/command/Default" what is the value of the "default" entry?

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 1:12 pm
by Starshine
[quote="sledgehammer_999 "]Then let's work through the other checks the code performs before displaying that messagebox.

Is there a .torrent key under "HKEY_CLASSES_ROOT" in the registry? If yes, what is the value of its "default" entry?
Also under "HKEY_CLASSES_ROOT/qBittorrent/shell/open/command" what is the value of the "default" entry?
Under "HKEY_CLASSES_ROOT/qBittorrent/DefaultIcon" what is the value of the "default" entry?
Under "HKEY_CLASSES_ROOT/Magnet/shell/open/command/Default" what is the value of the "default" entry?[/quote]

I think, the correct values to all?

Image

Image

Image

Image

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 1:34 pm
by sledgehammer_999
The next question is if your qbittorrent actually exists in the exact same path shown in the pics?

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 1:38 pm
by sledgehammer_999
Also are these keys present?
HKEY_CURRENT_USER\Software\Classes\.torrent
HKEY_CURRENT_USER\Software\Classes\magnet/shell/open/command

If yes, what is the value of their "(Default)" key?

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 2:29 pm
by Starshine
[quote="ciaobaby"]
The issue is probably NOT with qBitTorrent then, but with the permissions assigned to the key in the registry hive, evidently the  changes are not propagating to the "Machine Config" correctly when you shut the machine down. Running qBT with elevated permissions should allow this to happen but in this case appears to be failing.

Try:
Log on to the machine as the Administrator, (you may/will need to enable the account first http://technet.microsoft.com/en-gb/libr ... 10%29.aspx), then set  the file associations  so the changes should then propagate to the root keys in HKLM_LOCAL_MACHINE rather than remaining ephemeral in HKLM_CURRENT_USER.

Disable the Administrator user and reboot and login to your profile to see if the changes have become permanent and system wide.

OR
Booting into "Safe mode", then shut down and restart (not just restart) normally so the machine configuration data is refreshed can correct some of the annoying, but minor Windows 'issue' that creep in after the machine has been in use for several months.
[/quote]

I see your thinking and it definitely makes sense to try. I actually expected a change, but no.
I did both these things, but the problem still remains..... The Administrator did not get prompted about associating the files though.

[quote="Corpse Canopy"]
Just a question, Starshine, does the same problem come up while using an account other than the one in which you are having a problem now?
[/quote]
Yes, I have another user whose account is linked to a Live account (my normal user is local)
This user also gets prompted about file association.

[quote="sledgehammer_999"]
The next question is if your qbittorrent actually exists in the exact same path shown in the pics?
[/quote]

Yes, that's where it is. Default path.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Tue Jun 17, 2014 2:36 pm
by Starshine
[quote="sledgehammer_999"]
Also are these keys present?
HKEY_CURRENT_USER\Software\Classes\.torrent
HKEY_CURRENT_USER\Software\Classes\magnet/shell/open/command

If yes, what is the value of their "(Default)" key?
[/quote]

Not, these keys are not present in HKCU\Software\Classes!  :o

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Wed Jun 18, 2014 11:19 pm
by sledgehammer_999
@starshine

can you run this build? ->http://builds.shiki.hu/temp/qbittorrent ... _setup.exe

It logs some stuff in a file called "qbt-log.txt" on your desktop. Launch it, close it and then copy the contents of the file here or on pastebin.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 3:08 pm
by Starshine
Thanks! Ok, here it goes:

2014.06.19 03:07:41.511 PM - neverCheckFileAssoc: 0
2014.06.19 03:07:41.511 PM - .torrent/Default is qBittorrent
2014.06.19 03:07:41.512 PM - raw shell command is: "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1"
2014.06.19 03:07:41.512 PM - shell command is: "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1"
2014.06.19 03:07:41.512 PM - raw app path: C:/Program Files (x86)/qBittorrent/qbittorrent.exe
2014.06.19 03:07:41.512 PM - app path: C:\Program Files (x86)\qBittorrent\qbittorrent.exe
2014.06.19 03:07:41.512 PM - icon_str: "C:\Program Files (x86)\qBittorrent\qbittorrent.exe",1
2014.06.19 03:07:41.512 PM - raw shell command is: "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1"
2014.06.19 03:07:41.512 PM - shell command is: "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1"



I think ciaobaby might be on to something too, regarding ownership in the Registry, got a message about it when uninstalling a program. I haven't deliberately changed it, but it might be corrupt, or I might have done something unintentional. Going to check with a tool from Microsoft, later when I can read the documentation for it. subinacl.msi

All usual Microsoft scans come up with a clean bill of health though.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 3:23 pm
by ciaobaby
You can use "regedt32.exe" which is the 'advanced' registry editor (usual warnings apply) to check/edit  the permissions that are applied to the various keys and sections.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 3:55 pm
by sledgehammer_999
Please share your qbittorrent.ini too.
You seem to have either "Win32\NeverCheckFileAssocation=false" or that line not being present in the file.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 9:33 pm
by Starshine
[quote="sledgehammer_999"]
Please share your qbittorrent.ini too.
You seem to have either "Win32\NeverCheckFileAssocation=false" or that line not being present in the file.
[/quote]

Ok, here it goes!
Strange!! Could it be that QBT misses it for some reason? 

Code: Select all

[General]
ported_to_new_savepath_system=true
MainWindowLastDir=D:\\\x422\x41e\x420\x420\x415\x41d\x422\\Uploads

[Win32]
NeverCheckFileAssocation=true

[Preferences]
General\Locale=en_GB
ExecutionLog\enabled=false
General\AlternatingRowColors=true
General\SystrayEnabled=true
Advanced\TrayIconStyle=0
General\CloseToTray=false
General\MinimizeToTray=true
General\StartMinimized=false
General\NoSplashScreen=true
General\ExitConfirm=false
General\PreventFromSuspend=false
Downloads\SavePath=Q:/Qbittorrent_dummy
Downloads\TempPathEnabled=false
Downloads\TempPath=D:/Users/Hanna/Documents/Downloads/temp
Downloads\AppendLabel=false
Downloads\UseIncompleteExtension=false
Downloads\PreAllocation=false
Downloads\NewAdditionDialog=true
Downloads\NewAdditionDialogFront=true
Downloads\StartInPause=true
Downloads\ScanDirs=@Invalid()
Downloads\DownloadInScanDirs=@Invalid()
Downloads\TorrentExportDir=D:/\x422\x41e\x420\x420\x415\x41d\x422
Downloads\FinishedTorrentExportDir=D:/\x422\x41e\x420\x420\x415\x41d\x422/Klar
MailNotification\enabled=false
MailNotification\email=
MailNotification\smtp_server=smtp.changeme.com
MailNotification\req_ssl=false
MailNotification\req_auth=false
MailNotification\username=
MailNotification\password=
Downloads\DblClOnTorDl=0
Downloads\DblClOnTorFn=1
Connection\PortRangeMin=1080
General\UseRandomPort=false
Connection\UPnP=true
Connection\GlobalDLLimit=-1
Connection\GlobalUPLimit=-1
Bittorrent\uTP=false
Bittorrent\uTP_rate_limited=false
Advanced\IncludeOverhead=false
Connection\GlobalDLLimitAlt=3000
Connection\GlobalUPLimitAlt=150
Scheduler\Enabled=true
Scheduler\start_time=@Variant(\0\0\0\xf\x3\xdc\xc5\0)
Scheduler\end_time=@Variant(\0\0\0\xf\x4\xb8\x7f\0)
Scheduler\days=1
Connection\ProxyType=-1
Connection\Proxy\IP=89.248.173.115
Connection\Proxy\Port=1080
Connection\ProxyPeerConnections=true
Connection\Proxy\Authentication=false
Connection\Proxy\Username=7653335
Connection\Proxy\Password=Gustavus15
Bittorrent\MaxConnecs=500
Bittorrent\MaxConnecsPerTorrent=100
Bittorrent\MaxUploads=6
Bittorrent\MaxUploadsPerTorrent=4
Bittorrent\DHT=false
Bittorrent\PeX=false
Bittorrent\sameDHTPortAsBT=true
Bittorrent\DHTPort=6881
Bittorrent\LSD=false
Bittorrent\Encryption=0
Advanced\AnonymousMode=false
Bittorrent\MaxRatio=-1
Bittorrent\MaxRatioAction=0
IPFilter\Enabled=false
Queueing\QueueingEnabled=true
Queueing\MaxActiveDownloads=5
Queueing\MaxActiveUploads=999
Queueing\MaxActiveTorrents=999
Queueing\IgnoreSlowTorrents=false
WebUI\Enabled=false
Downloads\DiskWriteCacheSize=0
Downloads\DiskWriteCacheTTL=60
Advanced\OutgoingPortsMin=0
Advanced\OutgoingPortsMax=0
Advanced\IgnoreLimitsLAN=true
Advanced\RecheckOnCompletion=false
General\RefreshInterval=1500
Connection\ResolvePeerCountries=true
Connection\ResolvePeerHostNames=false
Connection\MaxHalfOpenConnec=50
Advanced\SuperSeeding=false
Connection\Interface=
Connection\InterfaceName=
Connection\InetAddress=
General\ProgramNotification=true
Advanced\trackerEnabled=false
Advanced\trackerPort=9000
Advanced\updateCheck=true
Advanced\confirmTorrentDeletion=true
Advanced\LtTrackerExchange=false
Advanced\AnnounceToAllTrackers=false
State\size=@Size(779 591)
State\pos=@Point(203 62)
State\hSplitterSizes=129, 623
Connection\alt_speeds_on=true

[LegalNotice]
Accepted=true

[TransferListFilters]
customLabels=, Allm\xe4n, Bitme.ORG, MAM, Rutracker, TVChaos, Cinemageddon, BTN, IPTorrents, Asiatorrents, SceneAccess, AudioBookTorrent, GazelleGames, TorrentLeech, Stopthepress, Jpopsuki, BreatheTheWord, What.CD, Bibliotik, PassThePopcorn, Karagarga
selectedFilterIndex=4

[AutoRun]
enabled=false
program=

[TorrentAdditionDlg]
save_path_history=D:/TV Series/Hex, D:/AUDIO BOOKS/Non-Fiction/Wellbeing/Sj\xe4lvhj\xe4lp, D:/AUDIO BOOKS/Non-Fiction/\x421\x430reer

[AddNewTorrentDialog]
y=0
width=800
expanded=true
treeHeaderState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x3\x1\0\0\0\0\0\0\0\0\0\0\0\x4\x4\0\0\0\x1\0\0\0\x2\0\0\0\x64\0\0\x2\xf4\0\0\0\x4\x1\x1\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xc7\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\x1\xc9\0\0\0\x1\0\0\0\0)

[CreateTorrent]
dimensions=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x5W\0\0\0r\0\0\a\xb6\0\0\x2\xad\0\0\x5_\0\0\0\x91\0\0\a\xae\0\0\x2\xa5\0\0\0\x1\0\0)
IgnoreRatio=false
last_add_path=D:\\AUDIO BOOKS\\Non-Fiction\\Non-Fiction\\Michio Kaku - Future of the Mind
last_save_path=D:/\x422\x41e\x420\x420\x415\x41d\x422/Uploads
TrackerList=http://inferno.demonoid.ph:3389/announce

[MainWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0L\xff\xff\xff\xf8\0\0\x4\xc6\0\0\x3\a\0\0\0\xc0\0\0\0l\0\0\x4Q\0\0\x2\x9e\0\0\0\0\x2\0)
vsplitterState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\0\xfe\0\0\x3\x91\x1\0\0\0\x5\x1\0\0\0\x1)

[TorrentProperties]
Visible=true
SplitterSizes="280,341"
FilesListState="@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x4>\0\0\0\x4\x1\x1\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x2\0\0\x3\x12\0\0\0\x1\0\0\0\0\0\0\x1,\0\0\0\x3\0\0\0\0)"
CurrentTab=1
Trackers\TrackerListState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x3%\0\0\0\x5\x1\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\x1e\0\0\0\x1\0\0\0\0\0\0\x1\xc8\0\0\0\x1\0\0\0\0\0\0\0\xc8\0\0\0\x2\0\0\0\0\0\0\0w\0\0\0\x1\0\0\0\0)
Peers\PeerListState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\v\0\x4\0\0\0\x1\0\0\0\n\0\0\0\x64\0\0\x3\xa5\0\0\0\v\x1\x1\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x3\0\0\x3\x84\0\0\0\t\0\0\0\0\0\0\0!\0\0\0\x1\0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0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x37\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0!\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0)

[quote="ciaobaby"]
You can use "regedt32.exe" which is the 'advanced' registry editor (usual warnings apply) to check/edit  the permissions that are applied to the various keys and sections.
[/quote]

Thanks! I will check that up after I had a chance to clone my C:drive as a precautionary measure. I really am not that great with the Registry, so I don't know what the values are supposed to be in terms of ownership.

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 10:10 pm
by sledgehammer_999
[Win32]
NeverCheckFileAssocation=true
This is your problem.

You must create it as I said under [Preferences] eg:
[Preferences]
Win32\NeverCheckFileAssocation=true
General\Locale=en_GB
ExecutionLog\enabled=false
General\AlternatingRowColors=true
blah blah

Re: Getting asked about associating qbt with torrent files every time I boot Qbt.

Posted: Thu Jun 19, 2014 11:09 pm
by Starshine
Yes! That did the trick!
I really don't know why it's in there with square brackets rather than backslash.... !
But now the prompt is gone!

Thanks a lot Sledgehammer!