Jump to content
Ketarin forum

Piriform portable applications


u2111
 Share

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 ?

Link to comment
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.

Link to comment
Share on other sites

  • 9 months later...

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

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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

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.