Jump to content
Ketarin forum

Ketarin 1.5 beta 7


floele
 Share

Recommended Posts

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

Hm, having xml problems also. My export of the jobs.db to xml creates the xml but when I try to paste that xml into Ketarin it lists only this app

 


 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="6476476c-e235-415a-951b-abe236f73312">
   <WebsiteUrl />
   <UserAgent />
   <UserNotes />
   <LastFileSize>16207</LastFileSize>
   <LastFileDate>2010-09-26T23:34:33.6235481</LastFileDate>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <SetupInstructions>
     <SetupInstruction xsi:type="CustomSetupInstruction">
       <Code>for /F "tokens=*" %c in ('dir /b /s \private\firefoxportable.exe') do set file=%c
&
"%file%" "{file}"</Code>
       <Type>Batch</Type>
     </SetupInstruction>
   </SetupInstructions>
   <Variables>
     <item>
       <key>
         <string>download</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http[^'"]+[^'"]+\.user\.js</Regex>
           <Url>http://userscripts.org/scripts/show/82474</Url>
           <Name>download</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <ExecuteCommandType>Batch</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category>Greasemonkey Userscripts</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programs\Ketarin\Programs\Greasemonkey Userscripts\82474.user.js</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2010-09-26T23:34:33.6235481</LastUpdated>
   <TargetPath>Programs\{category}\</TargetPath>
   <FixedDownloadUrl>{download}</FixedDownloadUrl>
   <Name>4chan x Updater (modified)</Name>

 

If I remove that from my xml (which is the first entry in the xml) it will only load the next first item it finds. For reference sake both those items were created from a template, so it may be related to the previous problem in this thread? Again it only affects exporting/importing the xml.

Link to comment
Share on other sites

On a related note, when I hit the update and install button it starts installing everything starting with the first item in the XML list which is what I posted above and doesn't even try to update. Ignores sorting information and doesn't go down the columns sequential and follows items in the XML for some reason.

Link to comment
Share on other sites

If I drag and drop it into Ketarin or use the "Import" button it gives me the error.

 

Pasting seem to put all applications in.

 

However if I then proceed to "Update and Install" it still goes straight to the Install dialogue but now it just goes "0 if 0 application successfully installed". If I move the jobs.db from the appdata to the ketarin problem folder it once again goes straight to installing that first application and skipping all update stuff.

 

Log is empty the entire time. Until the Update and Install with that specific program.

 

10/1/2010 1:37:57 AM: Update started with 1 application(s)
10/1/2010 1:37:58 AM: 4chan x Updater (modified): Replacing {download} in '{download}' with 'http://userscripts.org/scripts/source/82474.user.js'
10/1/2010 1:37:58 AM: 4chan x Updater (modified): Using referer: http://userscripts.org/scripts/show/82474
10/1/2010 1:38:00 AM: Update finished

Link to comment
Share on other sites

Install button still checks for update if a newer build is found, than skips download, tries to install older build and fails. Ketarin says install is OK but no install is done, and in log you read "The device is not ready." Twice i have seen this, with Firefox and Java - I am only reporting it because this means i cannot install older application builds with this method :-( This seems to be related either with the "file modified dates do not match" and "file sizes do not match" mismatches.

 

9/30/2010 12:10:17 PM: Update started with 1 application(s)
9/30/2010 12:10:20 PM: Firefox: Using referer: (none)
9/30/2010 12:10:21 PM: Firefox: Server source file: /download/file/b1c343401c55a1851c1ffe4eeb0f39d55bf8964a669d97463ae7e1ec5efda7ba
9/30/2010 12:10:22 PM: Firefox: Determined target file name: C:\USB-Toolkit\Install\Firefox.exe
9/30/2010 12:10:22 PM: Firefox: Checking if update is required...
9/30/2010 12:10:22 PM: Firefox: Update required, file sizes do not match
9/30/2010 12:10:22 PM: Firefox: Skipped downloading updates
9/30/2010 12:10:23 PM: Update finished
9/30/2010 12:10:24 PM: Firefox: Executing command: "D:\USB-Toolkit\Install\Firefox.exe" -ms
9/30/2010 12:10:25 PM: Firefox: Command result: Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Owner\Desktop\Ketarin-1.5.0.b4>"D:\USB-Toolkit\Install\Firefox.exe" -ms
The device is not ready.
C:\Documents and Settings\Owner\Desktop\Ketarin-1.5.0.b4>

Edited by josh
Link to comment
Share on other sites

Using the "Update all and Install" button still has two uncertainties for me.

 

First the execute command after all downloads occurs after each application has updated/installed. This may be intentional. Just letting you know.

 

Secondly it seems that installs regardless of whether or not it has found an update. Two specific instances are shown below. One is just a simple 'no update' and the other is a broken download link so tries to install the file it finds already. Intentional?

 

10/1/2010 1:17:12 PM: Update started with 1 application(s)
10/1/2010 1:17:13 PM: 4chan x Updater (modified): Replacing {download} in '{download}' with 'http://userscripts.org/scripts/source/82474.user.js'
10/1/2010 1:17:13 PM: 4chan x Updater (modified): Using referer: http://userscripts.org/scripts/show/82474
10/1/2010 1:17:15 PM: 4chan x Updater (modified): Server source file: /scripts/source/82474.user.js
10/1/2010 1:17:15 PM: 4chan x Updater (modified): Determined target file name: D:\Programs\Ketarin\Programs\Greasemonkey Userscripts\82474.user.js
10/1/2010 1:17:15 PM: 4chan x Updater (modified): Checking if update is required...
10/1/2010 1:17:15 PM: 4chan x Updater (modified): Update not required, since date and file size remain unchanged
10/1/2010 1:17:15 PM: Executing command: rd /s /q D:\Ketatemp
10/1/2010 1:17:15 PM: Command result: Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\Programs\Ketarin>rd /s /q D:\Ketatemp
The system cannot find the file specified.
D:\Programs\Ketarin>

10/1/2010 1:17:15 PM: Update finished
10/1/2010 1:17:16 PM: 4chan x Updater (modified): Executing command: for /F "tokens=*" %c in ('dir /b /s \private\firefoxportable.exe') do set file=%c
10/1/2010 1:17:16 PM: 4chan x Updater (modified): Executing command: &
10/1/2010 1:17:16 PM: 4chan x Updater (modified): Executing command: "%file%" "D:\Programs\Ketarin\Programs\Greasemonkey Userscripts\82474.user.js"
10/1/2010 1:17:16 PM: 4chan x Updater (modified): Command result: Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\Programs\Ketarin>for /F "tokens=*" %c in ('dir /b /s \private\firefoxportable.exe') do set file=%c
D:\Programs\Ketarin>set file=D:\private\FirefoxPortable\FirefoxPortable.exe 
D:\Programs\Ketarin>&
D:\Programs\Ketarin>"%file%" "D:\Programs\Ketarin\Programs\Greasemonkey Userscripts\82474.user.js"
D:\Programs\Ketarin>

 

10/1/2010 1:17:16 PM: Update started with 1 application(s)
10/1/2010 1:17:17 PM: 7-ZipPortable: Replacing {download} in '{download}' with 'http://downloads.sourceforge.net/portableapps/7-ZipPortable_4.65_Rev_3.paf.exe'
10/1/2010 1:17:17 PM: 7-ZipPortable: Using referer: http://sourceforge.net
10/1/2010 1:17:23 PM: 7-ZipPortable: Server source file: /portableapps/7-ZipPortable_4.65_Rev_3.paf.exe
10/1/2010 1:17:24 PM: 7-ZipPortable: Failed, The downloaded file is not a binary file type (text/html; charset=utf-8). Possibly there is an error page. Status code: 200 (OK)
10/1/2010 1:17:24 PM: Executing command: rd /s /q D:\Ketatemp
10/1/2010 1:17:24 PM: Command result: Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\Programs\Ketarin>rd /s /q D:\Ketatemp
The system cannot find the file specified.
D:\Programs\Ketarin>

10/1/2010 1:17:24 PM: Update finished
10/1/2010 1:17:24 PM: 7-ZipPortable: Executing command: AHK\autohotkey.exe PA.ahk "D:\Programs\Ketarin\Programs\7-ZipPortable_4.65_Rev_3.paf.exe" "D:\Programs7-ZipPortable"
10/1/2010 1:17:27 PM: 7-ZipPortable: Command result: Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\Programs\Ketarin>AHK\autohotkey.exe PA.ahk "D:\Programs\Ketarin\Programs\7-ZipPortable_4.65_Rev_3.paf.exe" "D:\Programs7-ZipPortable"
D:\Programs\Ketarin>

Link to comment
Share on other sites

The Update and install all button now works like a charm.

 

Sequentially goes through the list, downloading and if a download is found for that application moves tot he installation procedure for it. No problems with all my apps.

 

I'm not entirely sure though how to implement the new placeholder variable feature.

 

<placeholder variable="{name}"/>

<placeholder name="{name}"/>

<placeholder="{name}"/>

 

None of this parse the variable that I have made with the title {name} and give me an XML error upon importing specific to that line. Anything other than placeholder name= gives me an error message from line 1 till the end.

Link to comment
Share on other sites

Now I get to flex my stupid muscle

 

Because I interpret what you said as

 

<placeholder name="Name of application {name}"/>

 

Which doesn't work, nor does a variety of combinations.

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <WebsiteUrl />
   <UserAgent />
   <UserNotes />
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>true</ExclusiveDownload>
   <HttpReferer>http://sourceforge.net</HttpReferer>
   <SetupInstructions>
     <SetupInstruction xsi:type="CustomSetupInstruction">
       <Code>{AHK} PA.ahk "{file}" "{root}Private\{appname:regexreplace: \(.*\):}"</Code>
       <Type>Batch</Type>
     </SetupInstruction>
   </SetupInstructions>
   <Variables>
     <item>
       <key>
         <string>download</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http[^'"]+[^'"]+\.exe</Regex>
           <Url>http://portableapps.com/apps/internet/thunderbird_portable</Url>
           <Name>download</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>name</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><title>(.*?) \|</Regex>
           <Url>http://portableapps.com/apps/internet/thunderbird_portable</Url>
           <Name>name</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <ExecuteCommandType>Batch</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category>PortableApps.com Private</Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <TargetPath>Programs\</TargetPath>
   <FixedDownloadUrl>{download}</FixedDownloadUrl>
   <Name><placeholder name="pony{name}"/></Name>
 </ApplicationJob>
</Jobs>

 

I get all excited when my feature is implemented and now I get to feel like a moron because I don't know how to use it. Go me!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • 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.