You are here

[Fixed] uTorrentPortable

7 posts / 0 new
Last post
Mark Sikkema
Offline
Last seen: 11 years 4 months ago
Developer
Joined: 2009-07-20 14:55
[Fixed] uTorrentPortable

Reading the logs from a view days ago, had me have a closer look at uTorrentPortable.

As is known, uTorrent can take quite a while to really finish after it got closed by the user.
So if the user restarts uTorrentPortable again within the time uTorrent is still closing, as expected the launcher handles it as a secondary-launch. But the launcher is missing a CheckRunning-loop after Execwait, so the initial launcher will finish as well. Depending on, if uTorrent is locally installed or not, it will use the settings in %AppData%, or will ask the user to install uTorrent !

Basically it can be solved by including the CheckRunning-loop :

		ExecWait '"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0'
		
	CheckRunning:
		Sleep 2000
		FindProcDLL::FindProc "${DEFAULTEXE}"                  
		StrCmp $R0 "1" CheckRunning

[edit: And I wonder if there is a reason why there is no PA.c-splash included ?]

scriptdaemon
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2008-10-10 17:40
I've always wondered why it

I've always wondered why it was the only app I use that didn't have a splash.

Mark Sikkema
Offline
Last seen: 11 years 4 months ago
Developer
Joined: 2009-07-20 14:55
A better way to deal with the .bad files.

Going through the uTorrent forums I came across more info about uTorrent's .dat settings file format.

Apparently it is officially supported to just delete the 'fileguard' check-sum ! So this means that after updating the drive-letter and getting the 'fileguard' deleted, uTorrent accepts the settings files without creating any .bad files.

I made 2 scripts to test the theory!
One making use of the currently used,
ReplaceInFileWithUnicodev3.nsh : http://pastebin.com/Q4m17pah

And second making use of the 'NewTextReplace' plug-in,
ReplaceInFileForuTorrent.nsh : http://pastebin.com/tTPMZnr4

Potentially this could be more save for future releases of uTorrentPortable, as uTorrent's future versions could decide to just discard the drive-letter updated files due to bad 'fileguard' checksums

[edit: here are some links with info about the format (called Bencoding),
Removing the fileguard: http://forum.utorrent.com/viewtopic.php?pid=289816#p289816
The format specification: http://wiki.theory.org/BitTorrentSpecification#bencoding
]

Formerly Gringoloco
Windows XP Pro sp3 x32

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 19 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 2.0.2

The first bug is fixed in 2.0.2.

Gringoloco, if you can figure out some code to neutralize the file hashes to improve portability, please do Smile

Sometimes, the impossible can become possible, if you're awesome!

Mark Sikkema
Offline
Last seen: 11 years 4 months ago
Developer
Joined: 2009-07-20 14:55
That's exactly what I did in

That's exactly what I did in the above comment. Just include one of the scripts and do away with deleting the .bad files !

(If really needed, I could send you a complete package in a few days.)

Formerly Gringoloco
Windows XP Pro sp3 x32

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 19 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Didn't See

I didn't see that code. I thought you were just linking to the standard replace in file unicode since that's what the headers said when I looked at them.

Why don't you build a test release of 2.0.2 Rev 2 with these changes and we'll have some folks test it before we release it to the wild.

Sometimes, the impossible can become possible, if you're awesome!

Mark Sikkema
Offline
Last seen: 11 years 4 months ago
Developer
Joined: 2009-07-20 14:55
What about the splash screen,

What about the splash screen, is it just lacking it and should be added it, or is it due to copy-rights and so not allowed to use the uTorrent logo ?

Formerly Gringoloco
Windows XP Pro sp3 x32

Log in or register to post comments