Jump to content
Ketarin forum
Alex131089

Piriform portable applications

Recommended Posts

Here's a template to keep updated Piriform portable apps, which only require app name and 7zip/7za somewhere to extract application.

Website URL field require v1.6, else you can use this instead :

    <WebsiteUrl>http://www.piriform.com/<placeholder name="Lowercase appname" variable="appname:tolower" /></WebsiteUrl>

It include a Guid (prototype template).*

 

Globals :

ketarin-version=1.6.0.400
7za=..\7-Zip\7za.exe

 

Template :

<?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" Guid="dffa70a5-b3bf-4cc6-8d1c-18ee1a8790e2">
   <SourceTemplate><![CDATA[]]></SourceTemplate>
   <WebsiteUrl>http://www.piriform.com/{appname:tolower}</WebsiteUrl>
   <UserAgent>Ketarin/{ketarin-version}</UserAgent>
   <UserNotes />
   <LastFileSize>0</LastFileSize>
   <LastFileDate xsi:nil="true" />
   <IgnoreFileInformation>true</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>

   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator>version</VariableChangeIndicator>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <SetupInstructions />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>Version\s+([0-9.]{2,})</Regex>
           <Url>http://www.piriform.com/{appname:tolower}/download</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>pushd "{file:directory}"
{7za} e -y "{file:filename}"
del "{file:filename}"
popd</ExecuteCommand>
   <ExecutePreCommand />
   <ExecuteCommandType>Batch</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category />
   <SourceType>FixedUrl</SourceType>

   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />

   <TargetPath>{root-soft}\{appname}\</TargetPath>
   <FixedDownloadUrl>http://www.piriform.com/{appname:tolower}/download/portable/downloadfile</FixedDownloadUrl>
   <Name><placeholder name="Piriform application" /></Name>
 </ApplicationJob>
</Jobs>

 

*: Any way to differentiate topic templates with and without Guid ?

Edited by Alex131089

Share this post


Link to post
Share on other sites

You can just use these lines of code

 

<FixedDownloadUrl>http://www.piriform.com/<placeholder name="Name of application" />/builds/standard/downloadfile</FixedDownloadUrl>

 

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

 

Type in your application name and away you go. Defraggler/ccleaner etc. however I prefer actually just copying and pasting URL's into it and populating it that way.

 

Put this in between the <variables> </variables> tags

 

     <item>
       <key>
         <string>name</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><title>(.*?) \-</Regex>
           <Url><placeholder name="Homepage URL"/></Url>
           <Name>name</Name>
         </UrlVariable>
       </value>
     </item>      

 

And use these pieces of code instead.

 

   <FixedDownloadUrl>http://www.piriform.com/<placeholder name="Name of application" variable="name" />/builds/standard</FixedDownloadUrl>
   <Name><placeholder name="Name of application" variable="name" /></Name>

 

And then all you need to do is just paste any URL from the app page and it will populate the entire thing itself.

Share this post


Link to post
Share on other sites
Guest Dameek

I'm new to this....but I couldn't find where the install files were at.

 

Error message at Installing.

 

4:24 PM CCleaner: Skipped since no setup instructions exist

Share this post


Link to post
Share on other sites

This particular template assumes you have a global variable named "root-soft" that's setup as the path where you want all your downloads to be stored. If that variable isn't assigned, it should be placing the files relative to (in the same folder or child folders of) wherever you have the Ketarin application running from.

Share this post


Link to post
Share on other sites

I'm new to this....but I couldn't find where the install files were at.

 

Error message at Installing.

 

4:24 PM CCleaner: Skipped since no setup instructions exist

Means you have to define setup instructions in Edit - Commands to have it install.I use this for CCleaner:

"{file}" /S

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

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