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 ?]
I've always wondered why it was the only app I use that didn't have a splash.
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
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
Sometimes, the impossible can become possible, if you're awesome!
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
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!
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