Jump to content
Ketarin forum

josh

Members
  • Posts

    210
  • Joined

  • Last visited

Posts posted by josh

  1. Sorry for inconvinience but i wasn't sure if this was the proper place to post ;)

     

     

     

    Extract archive with full paths

    7z x "{file}" -o"{root}USB-Toolkit\{category}\{appname}\" -y

     

    Extract selected files from archive

    7z x "{file}" -o"{root}USB-Toolkit\{category}\{appname}" *.exe *.dll -r -y

     

    Extract archive to selected directory

    7z e "{file}" -o"{root}USB-Toolkit\{category}\{appname}\" -y

     

    Extract archive or selected files to temp

    7z x "{file}" -o%temp% *.exe -r

     

    Extract archive using Uniextract

    {root}USB-Toolkit\Backup\Uniextract\UniExtract.exe "{file}" "{root}USB-Toolkit\{category}\{appname}"

     

    Extract archive to temp using Uniextract

    start "" /wait {root}USB-Toolkit\Backup\Uniextract\UniExtract.exe "{file}" %temp%

     

    Copy files or folders

    copy /y %temp%\*.exe "{root}USB-Toolkit\{category}\{appname}"

     

    Copy files or folders (Robocopy)

    robocopy %temp% "{root}USB-Toolkit\{category}\{appname}" *.exe /e /b /np

     

    Rename file (with wildcard support)

    ren "{root}USB-Toolkit\{category}\{appname}\{filename}" ABC.msi

     

    Delete files

    del "{root}USB-Toolkit\{category}\{appname}\" /s /q

     

    Delete folders

    rd "{root}USB-Toolkit\{category}\{appname}\" /s /q

     

    Start a command and wait for it to finish

    start "" /wait

     

    Open elevated command prompt

    nircmd elevate cmd /c copy /y "{file}" "%ProgramFiles%"

     

    Write values to INI

    nircmd elevate cmd /c

     

    Create a shortcut on desktop

    nircmd shortcut "%ProgramFiles%\procexp.exe" "~$folder.desktop$" "{appname}"

  2. That's intentional though. Ketarin cannot know whether it has been downloaded successfully.

     

    But you are passing wrong information to the user. Since the exit code is the last command to be processed, why not doing an aditional check afterwords to verify if job is updated or not... ? In my intention when using this command, Ketarin still monitors the package like any other package, only difference is it doesn't download so i expect Ketarin to tell me if job needs to be updated or not.

  3. This is going to depend on your bandwith of course. :) And you are going to need a download manager, i don't say it will work with every download manager but i got it working smoothly with Wget. I did not try with Cygwin but i suspect it will work the same way, all you have to do is to adjust path to wget.exe.

     

    So, start capturing the url like any regular url, and add

    start "" /wait "d:\USB-Toolkit\Wget\wget.exe" {preupdate-url} -P "{root}USB-Toolkit\{category}\{appname}" & exit 2

    to the "Execute the following command before downloading" box. This will instruct Ketarin to pass above command to Wget and if an update is available, it will open Wget in a background window. Both the Exit code 2 and {preupdate-url} variable where just added to the new Ketarin 1.5b9 so you are also going to need that build or above. Here's a screenie of my Maveric download

     

     

    Image_2010-10-10_17-33.jpg

     

     

    Regarding Wget usage, although i don't see an advantage of using it to download small files, i find it very usefull to download larger one's. In my experience (limited of course) it works great with Ketarin. But if you are on a slower connection, that fails somewhat, and if you find command above troublesome, you may want to consider the alternative below.

     

    start "" /wait "d:\USB-Toolkit\Wget\wget.exe" -t 45 --limit-rate=100k -a log.txt {preupdate-url} -P {root}USB-Toolkit\{category}\ & exit 2

     

    Thanks to Mr.Florian for supporting and implementing this new feature to Ketarin.

  4. Hope you don't mind but i'm also getting an error with DVD Flick

    10-10-2010 12:03:20: SF#2_3: Failed, Source file on server is empty (ContentLength = 0).

    Although for me it's not related to authentication since all my other 'experimental sf jobs' work fine

    0-10-2010 11:53:33: SF#2_1: Replacing {redir} in 'sf://myusername:mypassword@{redir}' with 'http://sourceforge.net/projects/vlc/files/1.1.4/win32/vlc-1.1.4-win32.7z/download'
    10-10-2010 11:53:36: SF#2_1: Server source file: //sourceforge.net/projects/vlc/files/1.1.4/win32/vlc-1.1.4-win32.7z/download
    10-10-2010 11:53:36: SF#2_1: Determined target file name: D:\USB-Toolkit\Test\vlc-1.1.4-win32.7z
    10-10-2010 11:53:36: SF#2_1: Checking if update is required...
    10-10-2010 11:53:36: SF#2_1: Update not required, since date and file size remain unchanged
    10-10-2010 11:53:37: SF#2_1: Replacing {version} in '{version}' with '1.1.4'
    10-10-2010

    This is probably not helpful but single mirror method still does it's job (for instance using http://netcologne.dl.sourceforge.net/project/dvdflick/dvdflick/DVD%20Flick%201.3.0.7/dvdflick_setup_1.3.0.7.exe)

    10-10-2010 12:33:56: SF#2_3: Using referer: (none)
    10-10-2010 12:33:57: SF#2_3: Server source file: /project/dvdflick/dvdflick/DVD%20Flick%201.3.0.7/dvdflick_setup_1.3.0.7.exe
    10-10-2010 12:33:57: SF#2_3: Determined target file name: D:\USB-Toolkit\Test\dvdflick_setup_1.3.0.7.exe
    10-10-2010 12:33:57: SF#2_3: Checking if update is required...
    10-10-2010 12:33:57: SF#2_3: Update required, 'D:\USB-Toolkit\Test\dvdflick_setup_1.3.0.7.exe' does not yet exist
    10-10-2010 12:33:57: SF#2_3: Skipped downloading updates

  5. Ya, that's it, i didn't know that was available ... is this how it supposed to work?

    09-10-2010 22:33:24: Secunia PSI: Executing command: exit=1
    ....
    09-10-2010 22:33:41: Secunia PSI: Pre-update command returned '1', download skipped
    09-10-2010 22:33:41: Secunia PSI: Failed, The custom command failed (exit code 1), download aborted

    Doesn't make much sense to me, why is a 'fail' if i told Ketarin to abort? I assume, because it interprets as a 'fail', it goes on second retry and tries to download again ...

    09-10-2010 22:33:41: Secunia PSI: Using referer: http://secunia.com/vulnerability_scanning/personal/
    09-10-2010 22:33:41: Secunia PSI: Server source file: /PSISetup.exe
    09-10-2010 22:33:41: Secunia PSI: Determined target file name: D:\USB-Toolkit\Test\PSISetup.exe
    09-10-2010 22:33:41: Secunia PSI: Checking if update is required...
    09-10-2010 22:33:41: Secunia PSI: Update not required, since date and file size remain unchanged
    09-10-2010 22:33:47: Secunia PSI: Replacing {version} in '{version}' with '1.5.0.2'
    09-10-2010 22:33:47: Update finished

  6. I would like to suggest this new command box, to Execute a command if a download is available, as this would allow us to pass a command, via command-line, to a download manager or send a captured download link to clipboard that likewise would be handled by a download manager ... without triggering a download with Ketarin, since this is how the "Execute the following command before download" and "Execute the following command after download" work currently.

     

    Ketarin works fine for me for 97% of my downloads, the problem i'm trying to solve with this is the remaining 3% of large and extra-large files that take forever to download.

     

    I know several new features have been added recently, and people need some time to try them ... this is just another idea which i think it's possible to implement and it would be useful to many.

  7. So far i detected 2 types of problems with this approach. One are the "direct links" available in pages like

     

    http://sourceforge.net/projects/vlc/files/1.1.4/win32/vlc-1.1.4-win32.7z/download

     

    or

     

    http://sourceforge.net/projects/processhacker/files/processhacker2/processhacker-2.6-bin.zip/download

     

     

    The other is some "indirect links" don't work at all, i don't say all since i am fetching VLC link in developer page, but my previous PortableApps jobs didn't work for me, for instance,

     

    http://portableapps.com/apps/utilities/7-zip_portable

     

    I also needed to update Keepass job (see links in page below also)

     

    http://keepass.info/download.html

     

    This is the tricky part, other than that the method you recommended seems to be working flawlessly. Of course more users helping to test this would be better.

     

     

    BTW if you're doing some testing in upcoming hours ... i suggest you follow them on Twitter :) if you didn't do so already, just go @ http://twitter.com/sfnet_ops and you will know why.

  8. I'm getting the same SF error as Omniferum @ http://ketarin.canneverbe.com/forum/viewtopic.php?pid=4269#p4269 Already tried 3 direct downloads' date=' nothing works for me, always receive same message. Plz instruct. BTW all my older SF jobs are broken too, and i can't find a workaround for the moment.[/quote']

     

    And now also

    VLC Media Player Source file on server is empty (ContentLength = 0).

     

    Okay i got it working (i was using direct dl link and not redirection link, my mistake). Waaaaaaay better, so far it's a keeper. ;)

  9. Good job :D

    *Ketarin now internally also stores relative paths to files, so that changes of drive letters (USB sticks) will not cause Ketarin to forget where the files are located

    PASS

    *Make placeholder dialog remember the last position

    PASS

    *Installing applications: Expansion state is now remembered

    PASS

    !Fixed: 'Edit Variables' dialog no longer jumps to regex match

    PASS

    !Fixed: After deleting all applications, list shows "Loading applications..."

    PASS

    !Fixed: Installing applications dialog should not be maximisable

    PASS

    Any more feedback on the sf:// protocol yet? If no one either uses it or if no one can get it to work, I will remove this feature.

    To be honest i haven't given this feature a try because i have no sf broken jobs (until today) or enough sf jobs to test with ... i will be posting some feedback in the next couple of days

  10.  

    It is possible for Ketarin to parse the url found to an external application?

     

    Entirely depends on the external applications. If the application supports it, Ketarin can certainly pass on the downloading process, but then there won't be any status, post download commands or anything because Ketarin cannot track the completion.

     

    If you do some research on apps like JDownloer and find out the command line parameters, I can certainly look into implementing it.

     

    Been thinking about this myself ... what i miss here is a "Execute the following command if an update is available" box ... maybe i'm dreaming again :)

  11. Out of curiosity could you implement a 'priority' queue?

     

    An optional field where you can put certain application in an order and those that are blank are just done in sequential order of the current sorting.

     

    So like you could label a program priority 1, and another 2. This helps for things like 7-zip/Uniextract where you sometimes need them to be dl/installed before anything else as they are integral to the setup commands.

     

    Plus if people use things like Nircmd or whatever.

     

    Just a simple addition that i'm sure would bring a lot of benefit.

     

    Use start if needed, i have an unatended install when it's mandatory to install 3 MSIs in sequence and i do this whithout issues using this method.

     

     

    - Automatically expand "Show details" in "Installing Applications" dialog box.Leave option to manually hide details if the users wants or use some setting to remember user choice and always use that view.

     

    - Allow repositioning of install groups(up/down).

     

    - Allow repositioning of apps inside an install group(up/down)

     

    - Add option "copy to clipboard" in "Installing Applications" dialog box.

     

    So as you can see most of my issues are with the behaviour of the "Installing Applications" dialog box.

     

    A simple progress indicator for updates would be nice IMO ... 10%, 20%, 30% will do ...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.